Skip to content

Commit

Permalink
Fix disable http_proxy case
Browse files Browse the repository at this point in the history
  • Loading branch information
wweir committed Mar 25, 2020
1 parent 1574623 commit 78b6d4d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 78b6d4d

Please sign in to comment.