Skip to content

Commit

Permalink
Increased timeout for check_ip per single request from 4 to 6 seconds.
Browse files Browse the repository at this point in the history
  • Loading branch information
mazen160 committed Nov 5, 2018
1 parent 65a9402 commit 7272ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protonvpn-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function check_ip() {
--header 'x-pm-apiversion: 3' \
--header 'Accept: application/vnd.protonmail.v1+json' \
-o /dev/null \
--timeout 4 --tries 1 -q -O - 'https://api.protonmail.ch/vpn/location' \
--timeout 6 --tries 1 -q -O - 'https://api.protonmail.ch/vpn/location' \
| $python -c 'import json; _ = open("/dev/stdin", "r").read(); print(json.loads(_)["IP"])' 2> /dev/null)
counter=$((counter+1))
else
Expand Down

0 comments on commit 7272ca8

Please sign in to comment.