diff --git a/README.md b/README.md index 07674af..4098991 100644 --- a/README.md +++ b/README.md @@ -180,8 +180,10 @@ forward=http://1.1.1.1:8080,socks5://2.2.2.2:1080 # multiple upstream proxies forwad strategy strategy=rr -# check address (to check whether a host is reachable via forward proxy) -checkhost=www.apple.com:8443 +# Used to connect via forwarders, if the host is unreachable, the forwarder +# will be set to disabled. +# MUST be a HTTP website server address, format: HOST[:PORT]. HTTPS NOT SUPPORTED. +checkwebsite=www.apple.com # check duration checkduration=30 diff --git a/proxy.go b/proxy.go index ff66ce0..1111831 100644 --- a/proxy.go +++ b/proxy.go @@ -148,7 +148,7 @@ func check(p Proxy, webhost string, duration int) { p.SetEnable(true) retry = 2 dialTime := time.Since(startTime) - logf("proxy-check: %s -> %s, set to ENABLED. connect time: %s", p.Addr(), webhost, dialTime.String()) + logf("proxy-check %s -> %s, set to ENABLED. connect time: %s", p.Addr(), webhost, dialTime.String()) } else { p.SetEnable(false) logf("proxy-check %s -> %s, set to DISABLED. server response: %s", p.Addr(), webhost, buf)