Skip to content

Commit

Permalink
update netloca
Browse files Browse the repository at this point in the history
  • Loading branch information
eedeidk committed Dec 2, 2023
1 parent c936d7c commit afe6bfb
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/netaccess.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,26 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: |
3.6
3.11

- name: Setup Proxy
run: |
pip install proxybroker
proxybroker serve --host 127.0.0.1 --port 8888 --types HTTP HTTPS --lvl High --countries IN

- name: Setup env proxy
run: |
export HTTP_PROXY="http://127.0.0.1:8080"; export HTTPS_PROXY="http://127.0.0.1:8080"

- name: Test Network Access
run: |
# Replace 'https://example.com' with the URL you want to test
response=$(curl -s https://google.com)
response=$(curl -s api.ipify.org
# Check if the request was successful (HTTP status code 200)
if [ $? -eq 0 ]; then
Expand Down

0 comments on commit afe6bfb

Please sign in to comment.