proxy chek: 1. improve check method: send a http get request and check the response, if the first 4 byte is "HTTP" then the proxy is avaliable. 2. if a proxy is disabled, increase the check duration. 3. update related docs.

This commit is contained in:
nadoo committed 2017-07-31 13:42:11 +08:00
1 parent eb9e2fd4e5
commit 4219c4a7fa
11 files changed
+51 -40

No files matched your search

+2 -2
View File
@@ -14,8 +14,8 @@ strategy=rr
# Used to connect via forwarders, if the host is unreachable, the forwarder
# will be set to disabled.
# MUST BE A HTTP or HTTPS WEBSITE HOST ADDRESS
checkwebsite=www.apple.com:443
# MUST be a HTTP website server address, format: HOST[:PORT]. HTTPS NOT SUPPORTED.
checkwebsite=www.apple.com
# check duration(seconds)
checkduration=30
+1 -1
View File
@@ -8,7 +8,7 @@ forward=http://1.1.1.1:8080
# High Availability mode: ha
strategy=rr
checkwebsite=www.apple.com:443
checkwebsite=www.apple.com
checkduration=30
+1 -1
View File
@@ -13,7 +13,7 @@ forward=http://1.1.1.1:8080
# High Availability mode: ha
strategy=rr
checkwebsite=www.apple.com:443
checkwebsite=www.apple.com
checkduration=30
+1 -1
View File
@@ -10,7 +10,7 @@ forward=http://forwarder5:8080,socks6://forwarder3:1080
# High Availability mode: ha
strategy=rr
checkwebsite=www.apple.com:443
checkwebsite=www.apple.com
checkduration=30
@@ -2,7 +2,7 @@
forward=http://forwarder1:8080
# first connect forwarder1 then forwarder2 then internet
# first connect forwarder2 then forwarder3 then internet
forward=http://forwarder2:8080,socks5://forwarder3:1080
@@ -10,7 +10,7 @@ forward=http://forwarder2:8080,socks5://forwarder3:1080
# High Availability mode: ha
strategy=rr
checkwebsite=www.apple.com:443
checkwebsite=www.apple.com
checkduration=30