Commit Graph

18 Commits

Author SHA1 Message Date
kenshinx
8492d8c679 Make host records refresh interval be configurable 2016-09-18 12:04:21 +08:00
kenshinx
8e14764aa7 #26
1.Ensure hosts records refresh and get operation is thread safe.
2. Clear redis backend hosts records  during refresh operation.
2016-09-06 12:02:20 +08:00
kenshinx
4275900fb2 Add ToLower to all domain fields #24 2016-02-15 12:34:24 +08:00
kenshinx
0c1b4738cd Clear file-backend hosts cache. 2015-10-20 14:01:41 +08:00
kenshinx
21448a51e2 Support multiple A entries refer: #17 2015-10-15 01:08:25 +08:00
kenshinx
dcf31e1b22 Only redis-backend hosts support wildcard
I don't break the `/etc/hosts` standard that defined in man pages.
2015-10-15 00:40:34 +08:00
kenshinx
c5e01db7b5 Host records support wildcard #16 2015-10-14 12:41:08 +08:00
kenshinx
cd272bf769 Pretty log output 2015-10-14 01:00:28 +08:00
kenshinx
61f68d2b27 Reinforced domain regex match 2015-07-07 17:32:45 +08:00
kenshinx
5c651bacf3 Oops. Forgot close file handler. 2015-06-12 12:04:23 +08:00
kenshinx
8e504da15a Adaptive with IPV6 in hosts records. 2015-02-12 14:54:02 +08:00
kenshinx
81450a3983 Update hosts records as a regular interval
1. /etc/hosts will be update cycle instead of update once at the progress run
2. Avoid access redis in each requests
2015-02-12 14:09:49 +08:00
kenshinx
a5a8615b32 Keep consistence Host struct api 2015-02-11 18:01:05 +08:00
bigeagle
ccb72deec7 add option to disable redis 2015-02-05 19:37:57 +08:00
bigeagle
ce840f4f50 add IPv6 support 2015-02-03 20:33:54 +08:00
kenshin
272af1e39f syntax error. 2013-07-31 10:43:50 +08:00
kenshin
9ddf8a8939 finally. fix hosts query 2013-07-26 18:54:19 +08:00
kenshin
d22885557f read local hosts file 2013-07-26 12:06:16 +08:00