mirror of
https://github.com/ValdikSS/blockcheck.git
synced 2026-09-14 11:05:48 +05:00
/64 ipv6 net by default
This commit is contained in:
parent
1a260445b7
commit
0806ce4345
@ -366,8 +366,8 @@ def _mask_ip(ipaddr):
|
||||
ipaddr_s = ipaddress.ip_interface(ipaddr + '/24')
|
||||
return str(ipaddr_s.network).replace('0/24', 'xxx')
|
||||
if ipaddr_s.version == 6:
|
||||
ipaddr_s = ipaddress.ip_interface(ipaddr + '/48')
|
||||
return str(ipaddr_s.network).replace(':/48', 'xxxx::')
|
||||
ipaddr_s = ipaddress.ip_interface(ipaddr + '/64')
|
||||
return str(ipaddr_s.network).replace(':/64', 'xxxx::')
|
||||
return None
|
||||
|
||||
def _dpi_send(host, port, data, fragment_size=0, fragment_count=0):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user