We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc5a8a6 commit de072efCopy full SHA for de072ef
rootfs/bin/check.sh
@@ -1,6 +1,6 @@
1
#!/usr/bin/env bash
2
#ret=$(curl -s http://ip-api.com/json | jq '.countryCode' | tr '[:upper:]' '[:lower:]' | tr -d '"'| grep "$COUNTRY" | wc -l)
3
-ret=$(curl -s --proxy localhost:8888 https://ifconfig.io/country_code | tr '[:upper:]' '[:lower:]' | tr -d '"'| grep "$COUNTRY" | wc -l)
+ret=$(curl --proxy-anyauth --proxy-user "$PROXY_USER:$PROXY_PASS" -s --proxy localhost:8888 https://ifconfig.io/country_code | tr '[:upper:]' '[:lower:]' | tr -d '"'| grep "$COUNTRY" | wc -l)
4
if [ $ret -eq 1 ]; then
5
exit 0
6
else
0 commit comments