Fix disable http_proxy case

This commit is contained in:
wweir
2020-03-25 10:03:33 +08:00
parent 1574623507
commit 78b6d4df2e
+4 -2
View File
@@ -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 {