shadowsocks-go
shadowsocks-go copied to clipboard
respect timeout value in config file
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.