Bump the netprobe timeout up to 60 seconds

This commit is contained in:
Frank Denis 2018-11-22 17:24:41 +01:00
parent 68ff5d2205
commit c52b3ef124
2 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ func newConfig() Config {
TLSDisableSessionTickets: false,
TLSCipherSuite: nil,
NetprobeAddress: "9.9.9.9:53",
NetprobeTimeout: 30,
NetprobeTimeout: 60,
OfflineMode: false,
}
}
@ -192,7 +192,7 @@ func ConfigLoad(proxy *Proxy, svcFlag *string) error {
check := flag.Bool("check", false, "check the configuration file and exit")
configFile := flag.String("config", DefaultConfigFileName, "Path to the configuration file")
child := flag.Bool("child", false, "Invokes program as a child process")
netprobeTimeoutOverride := flag.Int("netprobe-timeout", 30, "Override the netprobe timeout")
netprobeTimeoutOverride := flag.Int("netprobe-timeout", 60, "Override the netprobe timeout")
flag.Parse()

View File

@ -190,7 +190,7 @@ ignore_system_dns = false
## connectivity is not guaranteed to be immediately available.
## Use 0 to disable.
netprobe_timeout = 30
netprobe_timeout = 60
## Offline mode - Do not use any remote encrypted servers.