Lution
392e54e508
update regex to support hostnames containing underscore ( #694 )
2017-01-02 14:56:57 +08:00
ahxxm
5cd9f04948
Refactor ( #615 )
...
* make tcprelay.py less nested
* import traceback module at the top
* make loops in DNSResolver less nested
* make manager.py less nested
* introduce exception_handle decorator
make try/except block more clean
* apply exception_handle decorator to tcprelay
* quote condition judgement
* pep8 fix
2016-10-07 12:30:17 +08:00
htc
b276d52735
Add support for option 'prefer-ipv6'
2016-02-20 11:33:50 +08:00
李林哲
0c4f79284e
allow user to override system dnsserver with config.
...
config item:
dns_server list
eg:
dns_server:[8.8.8.8,8.8.4.4]
2015-08-17 09:55:05 +08:00
clowwindy
02120e3402
optimize eventloop
2015-08-02 14:45:15 +08:00
clowwindy
e8b2946999
fix workers
2015-08-01 19:09:29 +08:00
clowwindy
d319fab5ca
fix asyncdns unit test
2015-08-01 18:58:57 +08:00
clowwindy
80102f3899
fix pyflakes
2015-08-01 18:57:44 +08:00
clowwindy
4a8d0774b4
optimize performance for multiple ports
...
UDPRelay is broken now
2015-08-01 18:53:18 +08:00
clowwindy
d774286dc0
rename utils module into shell
...
Since utils is ambiguous, we want to give the module a more
clear role.
2015-02-10 17:26:10 +08:00
clowwindy
cb7062e1c1
implement utils.print_exception()
...
Previously we used logging.error(e) and traceback.print_exc()
to output error stack trace. The problem is, we want to
output the stack trace only when verbose > 0. The if statement
scattered around the code. So we replaced them with the new
utils.print_exception() call.
2015-02-10 17:21:29 +08:00
clowwindy
ce805f0aea
license under Apache License v2.0
2015-02-03 14:10:36 +08:00
Sunny
8783e0e9ae
Move is_ip from asyncdns to common
...
Since implement CIDR forbidden need this function,
move it to common file seems to be a better choice.
2015-01-31 22:56:09 +08:00
clowwindy
6efb3d00e4
fix #264
2015-01-16 18:52:40 +08:00
clowwindy
134bf332a4
remove domain not existed test(causing time out)
2014-12-11 14:13:58 +08:00
clowwindy
030cdbcec0
add asyncdns test
2014-12-11 14:08:34 +08:00
clowwindy
2a53b67c65
python 3 support; not stable yet
2014-10-31 18:28:22 +08:00
clowwindy
0814888ba5
use absolute import
2014-10-31 16:29:19 +08:00
clowwindy
5aece6f464
remove test in asyncdns
2014-09-14 10:17:45 +08:00
clowwindy
e72594ffbe
only end querying when response is of query type AAAA
2014-09-14 10:16:40 +08:00
clowwindy
3ce7c18dfb
close #180
2014-09-14 10:06:16 +08:00
clowwindy
327c70e353
Graceful shutdown; close #179
2014-09-12 00:51:25 +08:00
clowwindy
972bf22e6d
fix PEP8
2014-08-27 00:17:26 +08:00
clowwindy
e51aa4f137
use only ipv4 dns server
2014-08-10 12:23:44 +08:00
clowwindy
012ab70500
use multiple DNS instead of trying each one
2014-06-23 21:46:23 +08:00
clowwindy
d4458bceb7
add timeout support in DNS
2014-06-23 21:35:39 +08:00
clowwindy
f9fef0e229
add TypeError
2014-06-22 11:58:22 +08:00
clowwindy
4b3c018aa9
verify hostname
2014-06-20 22:58:14 +08:00
clowwindy
a109f571e3
fix worker master
2014-06-12 17:11:05 +08:00
clowwindy
df836bed77
fix DNS record parsing
2014-06-12 16:21:08 +08:00
clowwindy
2306add1df
split parse_header()
2014-06-11 14:42:51 +08:00
clowwindy
24eadfbb5f
send again even if in queue
2014-06-08 17:30:50 +08:00
clowwindy
bcdc1e9671
add async dns to tcp relay
2014-06-08 17:12:00 +08:00
clowwindy
5c274a1bc7
update dns
2014-06-08 16:38:30 +08:00
clowwindy
cdd333ea97
update dns
2014-06-08 16:35:39 +08:00
clowwindy
de5461a17e
refine test
2014-06-08 16:08:00 +08:00
clowwindy
71c3759c12
add async dns
2014-06-08 15:58:59 +08:00
clowwindy
fbc4906445
add cache
2014-06-08 15:41:39 +08:00
clowwindy
9c0bab297e
more work
2014-06-08 14:38:09 +08:00
clowwindy
45f9998fa9
more work
2014-06-08 14:17:26 +08:00
clowwindy
6b76319495
more work
2014-06-08 13:55:19 +08:00
clowwindy
7a77205530
update ns
2014-06-07 11:50:30 +08:00
clowwindy
795e0f4b8e
update ns
2014-06-07 00:11:14 +08:00
clowwindy
c354d8a8af
add asyncdns
2014-06-06 21:33:10 +08:00