README: change checkhost -> checkwebsite

This commit is contained in:
nadoo 2017-07-31 14:07:47 +08:00
parent a06d56cce0
commit b3b06cbfa5
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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)