diff --git a/entrypoint.sh b/entrypoint.sh index 4ea600a..cbc71a3 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,9 @@ #!/usr/bin/env sh +echo "Fetching fresh proxies" python3 /app/scrape_proxies.py | tee /mubeng/proxies.txt -/bin/mubeng --check --address 0.0.0.0:8080 --rotate 1 --method random --file /mubeng/proxies.txt --watch --timeout 10s +echo "Validating proxies" +/bin/mubeng --check --file /mubeng/proxies.txt --timeout 5s --output /mubeng/live_proxies.txt + +/bin/mubeng --address 0.0.0.0:8080 --rotate 1 --method random --file /mubeng/live_proxies.txt --watch --timeout 10s