100ebcf064 
								
							
								 
							
						 
						
							
							
								
								Add IPNetwork class to support CIDR calculation  
							
							
 
							
							
							Usage:
Use IPNetwork(str|list<str>) to create an IPNetwork object.
Use operator 'in' to determine whether the specified
IP address is in the IP network or not, like:
>>> '192.168.1.1' in IPNetwork('192.168.1.0/24')
True
Both IPv4 and IPv6 address are supported.
Note: When using string to initialize the IPNetwork,
a comma seperated IP network list should be provided.
Currently, IPNetwork just support standard CIDR like:
x.x.x.x/y eg. 192.168.1.0/24
::x/y     eg. ::1/10
If pure IP address was provided,
it will be treated as implicit IP network,
like 192.168.0.0 will be treated as 192.168.0.0/16
and  192.168.1.1 will be treated as 192.168.1.1/32
This implicit translate may cause some unexpected behavior,
like user provide 192.168.2.0 and expect it will be treated as
192.168.2.0/24 but actually it will be translated to
192.168.2.0/23 because there are 9 continuous 0 from right.
In order to avoid confusion, a warning message
will be displayed when pure IP address was provided.
Other variants of CIDR are not supported yet. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								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. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ada97ab6d9 
								
							
								 
							
						 
						
							
							
								
								improve comments  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1f8819f790 
								
							
								 
							
						 
						
							
							
								
								fix   #270  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6efb3d00e4 
								
							
								 
							
						 
						
							
							
								
								fix   #264  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bd22e3ef75 
								
							
								 
							
						 
						
							
							
								
								try every dll that matches by name in PATH  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								af6c6f3f23 
								
							
								 
							
						 
						
							
							
								
								also search lib* for library names  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5c05a74727 
								
							
								 
							
						 
						
							
							
								
								fix a potential name conflict  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								53a7e4d0e4 
								
							
								 
							
						 
						
							
							
								
								remove print  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f7316c0047 
								
							
								 
							
						 
						
							
							
								
								change logging level for UDP warning  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4312eb9e58 
								
							
								 
							
						 
						
							
							
								
								add forbidden support for UDP and add tests  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eb94bd1cc3 
								
							
								 
							
						 
						
							
							
								
								support forbidden iplist  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								80b8bd7014 
								
							
								 
							
						 
						
							
							
								
								remove M2Crypto completely  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a4b0ea5b8f 
								
							
								 
							
						 
						
							
							
								
								fix find_library  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e582b2b929 
								
							
								 
							
						 
						
							
							
								
								rename ctypes_* and remove salsa20-ctr  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3d03dbf716 
								
							
								 
							
						 
						
							
							
								
								extract find_library  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ebfd1486d8 
								
							
								 
							
						 
						
							
							
								
								Removing the overhead of creating a new list per event  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6eadfca78e 
								
							
								 
							
						 
						
							
							
								
								Removing trailing whites  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3294a92a61 
								
							
								 
							
						 
						
							
							
								
								Search libcrypto.so in more locations  
							
							
 
							
							
							Some linux distro may store .so in some alternative locations. Now we
try harder to find them. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								18da3554ff 
								
							
								 
							
						 
						
							
							
								
								Minor fix: never use except: unless you reraise  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8b2deb01d8 
								
							
								 
							
						 
						
							
							
								
								Set default method as bytes.  
							
							
 
							
							
							Default method as string may cause false error report. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								176e97bb45 
								
							
								 
							
						 
						
							
							
								
								Fixing some minor issues  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4598e09b78 
								
							
								 
							
						 
						
							
							
								
								now works on OpenWRT  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0bc0117cd7 
								
							
								 
							
						 
						
							
							
								
								update help url  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bac675d7f6 
								
							
								 
							
						 
						
							
							
								
								2015  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								291adf8b85 
								
							
								 
							
						 
						
							
							
								
								log client address  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d91f7d85d4 
								
							
								 
							
						 
						
							
							
								
								Update ctypes_libsodium.py  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e8501da271 
								
							
								 
							
						 
						
							
							
								
								fix vim  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								99c8bbafe7 
								
							
								 
							
						 
						
							
							
								
								fix fastopen and add a new test  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								30f4f78557 
								
							
								 
							
						 
						
							
							
								
								fix travis  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5ea8403e56 
								
							
								 
							
						 
						
							
							
								
								fix daemon and add fastopen tests  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								be1d1d5032 
								
							
								 
							
						 
						
							
							
								
								add SIGINT in workers  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								536b7d1ee6 
								
							
								 
							
						 
						
							
							
								
								use SIGINT instead in tests  
							
							
 
							
							
							Conflicts:
	tests/test.py 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2b4c3619d6 
								
							
								 
							
						 
						
							
							
								
								reorder setsid and kill  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dae2624b30 
								
							
								 
							
						 
						
							
							
								
								add setsid  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								35c3b0b41c 
								
							
								 
							
						 
						
							
							
								
								refine documentation  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								28347b685e 
								
							
								 
							
						 
						
							
							
								
								add unit test for daemon  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								134497c24f 
								
							
								 
							
						 
						
							
							
								
								implement daemon  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7274c7ad96 
								
							
								 
							
						 
						
							
							
								
								fix comments  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								706a137b3f 
								
							
								 
							
						 
						
							
							
								
								fix typo  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4b0b252953 
								
							
								 
							
						 
						
							
							
								
								improve comments  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								163992b98b 
								
							
								 
							
						 
						
							
							
								
								small fix  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								676bf9617b 
								
							
								 
							
						 
						
							
							
								
								fix key cache when just method changes  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cbbc880f44 
								
							
								 
							
						 
						
							
							
								
								try to find the problem  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								810db996cd 
								
							
								 
							
						 
						
							
							
								
								disable M2Crypto on Python 3  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3e503bf677 
								
							
								 
							
						 
						
							
							
								
								log method in encrypt unit test  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1459282ae6 
								
							
								 
							
						 
						
							
							
								
								only test some ciphers  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4d5d6c7c85 
								
							
								 
							
						 
						
							
							
								
								add unit tests in encrypt  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								134bf332a4 
								
							
								 
							
						 
						
							
							
								
								remove domain not existed test(causing time out)  
							
							
								
 
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e1f2046229 
								
							
								 
							
						 
						
							
							
								
								lint code  
							
							
								
 
							
							
						 
						11 years ago