Commit Graph

24 Commits

Author SHA1 Message Date
nadoo
8a0176b12a general: combine cdialer and sdialer 2018-03-24 19:57:46 +08:00
nadoo
bcf9583147 socks5: support udp in server mode 2018-01-20 22:13:04 +08:00
nadoo
ebbc50a0c9 udptun: add DialUDP to forwarders 2018-01-17 00:26:38 +08:00
nadoo
ecdd33f0ed http: add param xsi for "X-Server-IP" header 2018-01-16 10:39:40 +08:00
nadoo
afb5f246ac http: add 'X-Forwarded-For' in response header 2018-01-14 21:16:54 +08:00
nadoo
fa5aa87689 udptun: use net.Conn instead of net.PacketConn 2018-01-14 20:37:38 +08:00
nadoo
77615f9f3d http: fixed a bug in reqHeader.Get 2018-01-13 14:36:13 +08:00
nadoo
138c78697a conn: change OutboundIP to return string 2018-01-13 14:34:49 +08:00
nadoo
84b47cbf1d http: add param to send 'X-Forwarded-For' header. #18 2018-01-13 14:25:55 +08:00
nadoo
31a6c94d75 udptun: add udp tunnel support 2018-01-12 20:11:21 +08:00
nadoo
ff281721d0 doc: correct a mistake in example config file 2017-12-24 23:13:53 +08:00
nadoo
a0972f535e http: optimized proxy client 2017-12-17 14:46:24 +08:00
nadoo
a79cd87ae8 http: add header ending in http proxy client mode 2017-12-17 11:24:25 +08:00
nadoo
339a27f81f http: Proxy-Authorization header 2017-12-17 01:01:11 +08:00
nadoo
4ac0847ea9 http: add basic auth in client mode 2017-12-17 00:36:53 +08:00
nadoo
4bd8bae2a5 general: add some comments to functions 2017-09-10 20:33:35 +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
7b4e07bbe4 rules: add rules-dir folder config support 2017-08-20 21:44:18 +08:00
nadoo
6469d3332e general: optimize codes 2017-08-16 22:37:42 +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
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
c50c9d0134 first commit 2017-07-13 21:55:41 +08:00