From e64d1ed5616a2f70637279c4141d081605b884e8 Mon Sep 17 00:00:00 2001 From: Peter Etelej Date: Sun, 25 Nov 2018 20:58:18 +0300 Subject: [PATCH] increase ip check timeout Increase ifconfig.co IP check client timeout in case of slow internet --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 291b566..cd4862e 100644 --- a/main.go +++ b/main.go @@ -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 {