shadowsocks-go icon indicating copy to clipboard operation
shadowsocks-go copied to clipboard

respect timeout value in config file

Open ayanamist opened this issue 5 years ago • 0 comments

Since ss.UpdateConfig will merge non-zero value in new, but cmdConfig from flag.Parse will always has a default value (300) from flag.IntVar(&cmdConfig.Timeout, ....), so the timeout value from config file will always be overwritten until explicit specify -t xxx in cmd line. This PR fix this issue and respect timeout value in config file if no -t xxx is specified in cmd line.

ayanamist avatar Jul 02 '19 01:07 ayanamist