добавляет маску
This commit is contained in:
parent
aa3db2ec8c
commit
3e650ec52f
6
ips.txt
6
ips.txt
@ -1,6 +1,6 @@
|
||||
192.229.221.58
|
||||
34.120.25.175
|
||||
104.198.14.52
|
||||
192.229.221.58/32
|
||||
34.120.25.175/32
|
||||
104.198.14.52/32
|
||||
35.190.247.0/24
|
||||
64.233.160.0/19
|
||||
66.102.0.0/20
|
||||
|
@ -9,7 +9,7 @@ with open('ips.txt', 'w') as out:
|
||||
if l.startswith('#') or l == '':
|
||||
continue
|
||||
|
||||
ips.append(socket.gethostbyname(l))
|
||||
ips.append(socket.gethostbyname(l) + '/32')
|
||||
|
||||
ips = list(dict.fromkeys(ips))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user