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

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

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