Skip to content

Commit

Permalink
increase ip check timeout
Browse files Browse the repository at this point in the history
Increase ifconfig.co IP check client timeout in case of slow internet
  • Loading branch information
peteretelej authored Nov 25, 2018
1 parent 81ca5c1 commit e64d1ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func checkIP(timeLimit time.Duration, vpnIP string) error {
return err
}
cl := &http.Client{
Timeout: time.Second * 2,
Timeout: time.Second * 10,
}
resp, err := cl.Do(req)
if err != nil {
Expand Down

0 comments on commit e64d1ed

Please sign in to comment.