Commit Graph

27 Commits

Author SHA1 Message Date
nadoo
4376565e6c ipset: 1. ipset flush; 2. ipset in main config 2017-08-29 18:36:42 +08:00
nadoo
ac1976d5d7 ipset: add ipset management. REQUIRE CAP_NET_ADMIN capability. 2017-08-28 19:23:32 +08:00
nadoo
f687c0b7d0 rule: use new concurrent sync.Map instead of old map 2017-08-23 18:58:24 +08:00
nadoo
a902152ef1 log: add LogFunc so we can define a custom logger 2017-08-23 18:04:20 +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
c3329ac601 dns: add experimental codes to specify different remote dns server in rule file 2017-08-16 13:20:12 +08:00
nadoo
75de6dab38 general: change StringSlice to StringSliceUniq to remove duplicate flag values 2017-08-13 20:25:21 +08:00
nadoo
8cc0ac2ac2 general: use string slice instead of custom arrFlags type. 2017-08-12 12:20:25 +08:00
nadoo
505fb5e504 change version 2017-08-08 09:49:32 +08:00
nadoo
de229c1a7d dnstun: remove last dot in getDomain func 2017-08-07 15:06:26 +08:00
nadoo
4219c4a7fa 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
6eb29f9874 1. add CIDR rule support; 2. update some docs; 3. optimize rule.go codes. 2017-07-30 10:35:11 +08:00
nadoo
b726d341e3 add proxy rule file support. 2017-07-30 01:54:19 +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
dd07c527b0 parse domain in dns request playload. (prepare for the forward rule and ipset management features.) 2017-07-26 18:56:24 +08:00
nadoo
9fbd527072 added more info to config example 2017-07-23 01:46:06 +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
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
237bd06b5b remove some feature help msg which haven't been implemented yet. 2017-07-14 16:49:21 +08:00
nadoo
c50c9d0134 first commit 2017-07-13 21:55:41 +08:00