добавляет маску

This commit is contained in:
Maxim Slipenko 2022-08-28 12:00:07 +03:00
parent aa3db2ec8c
commit 3e650ec52f
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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))