Commit Graph

15 Commits

Author SHA1 Message Date
nadoo
4574ab1c1a general: optimize codes 2017-08-16 22:37:42 +08:00
nadoo
b29d972adc dnstun: add the ability to support both udp and tcp dns request 2017-08-13 23:51:08 +08:00
nadoo
7a919ed124 dnstun: remove last dot in getDomain func 2017-08-07 15:06:26 +08:00
nadoo
b3b06cbfa5 README: change checkhost -> checkwebsite 2017-07-31 14:07:47 +08:00
nadoo
a06d56cce0 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. 2017-07-31 13:42:11 +08:00
nadoo
4dd429b754 add proxy rule file support. 2017-07-30 01:54:19 +08:00
nadoo
bf692de636 change "func GetProxy() Proxy" to "GetProxy(dstAddr string) Proxy" so we could add rule based proxy later 2017-07-29 23:20:27 +08:00
nadoo
88dda17725 1. optimized strategy proxy code. 2. changed config name "checkhost" -> "checkwebsite" 3. optimized proxy check function. 2017-07-29 21:31:01 +08:00
nadoo
e4ce0edc39 add config file support. 2017-07-18 19:25:54 +08:00
nadoo
e27e482272 Revert "add simple config file support."
This reverts commit e9ef64bf6745494d0a33560de6226f371d63c9be.
2017-07-18 19:01:42 +08:00
nadoo
cacde72e04 add simple config file support. 2017-07-18 17:49:44 +08:00
nadoo
0d01e8a4eb fixed a bug in strategy.go which may leads to infinite recursion in the condition of all remote proxy disabled. 2017-07-16 12:16:50 +08:00
nadoo
1f13a8d1e8 fixed a bug in ha mode 2017-07-15 10:41:52 +08:00
nadoo
c79a9ee36d fixed a bug in proxy check which may leads to socket error: too many open files. 2017-07-14 20:52:49 +08:00
nadoo
668d5bc470 first commit 2017-07-13 21:55:41 +08:00