mirror of
https://github.com/wweir/sower.git
synced 2024-04-21 12:42:15 +00:00
Fix disable http_proxy case
This commit is contained in:
@@ -27,8 +27,10 @@ func main() {
|
||||
PersistFn: conf.PersistRule,
|
||||
}
|
||||
|
||||
go proxy.StartHTTPProxy(conf.Conf.Client.HTTPProxy, conf.Conf.Client.Address,
|
||||
[]byte(conf.Conf.Password), route.ShouldProxy)
|
||||
if conf.Conf.Client.HTTPProxy != "" {
|
||||
go proxy.StartHTTPProxy(conf.Conf.Client.HTTPProxy, conf.Conf.Client.Address,
|
||||
[]byte(conf.Conf.Password), route.ShouldProxy)
|
||||
}
|
||||
|
||||
enableDNSSolution := conf.Conf.Client.DNSServeIP != ""
|
||||
if enableDNSSolution {
|
||||
|
||||
Reference in New Issue
Block a user