Commit Graph

23 Commits

Author SHA1 Message Date
nadoo
6b3d9b85dd strategy: write once in proxy check 2018-01-29 23:33:53 +08:00
nadoo
ebbc50a0c9 udptun: add DialUDP to forwarders 2018-01-17 00:26:38 +08:00
nadoo
fa5aa87689 udptun: use net.Conn instead of net.PacketConn 2018-01-14 20:37:38 +08:00
nadoo
76a12aa8d1 strategy: optimize code 2018-01-13 20:08:49 +08:00
nadoo
31a6c94d75 udptun: add udp tunnel support 2018-01-12 20:11:21 +08:00
amarkowski
107fff8c96 use sync.Map in status 2017-11-03 11:55:15 +01:00
nadoo
4bd8bae2a5 general: add some comments to functions 2017-09-10 20:33:35 +08:00
nadoo
cfc8ee9b5e forwarder: add NextDialer method so we can choose dialer by domain name (not dns server) in dns proxy 2017-08-23 17:45:57 +08:00
nadoo
1ca16dac79 1. general: restructured codes;
2. rule: add dnsserver to ip rule map;
3. dns: add DNSAnswerHandler so we can define a custom handler when a domain resolved
2017-08-23 16:35:39 +08:00
nadoo
6469d3332e general: optimize codes 2017-08-16 22:37:42 +08:00
nadoo
071ed4ae62 strategy: fixed a bug in haproxy which actually act as a rrproxy. 2017-07-31 19:29:43 +08:00
nadoo
b726d341e3 add proxy rule file support. 2017-07-30 01:54:19 +08:00
nadoo
dfb25665c7 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
23f314889e 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
5e9f0e8858 fixed all known bugs 2017-07-29 18:15:22 +08:00
nadoo
c2cbb24fc6 add config file support. 2017-07-18 19:25:54 +08:00
nadoo
bf5f2f213a Revert "add simple config file support."
This reverts commit e9ef64bf6745494d0a33560de6226f371d63c9be.
2017-07-18 19:01:42 +08:00
nadoo
98ec7e8f33 add simple config file support. 2017-07-18 17:49:44 +08:00
nadoo
5639151db3 fixed a bug in upstream http proxy. 2017-07-16 20:13:01 +08:00
nadoo
a3830d9bf6 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
1c7cc11232 fixed a bug in ha mode 2017-07-15 10:41:52 +08:00
nadoo
a3189c3e23 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
c50c9d0134 first commit 2017-07-13 21:55:41 +08:00