From 3e650ec52f40891093c761a93a58f857d8bd6033 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Sun, 28 Aug 2022 12:00:07 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D1=8F?= =?UTF-8?q?=D0=B5=D1=82=20=D0=BC=D0=B0=D1=81=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ips.txt | 6 +++--- scripts/1_ips_from_domains_txt.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ips.txt b/ips.txt index 7163e6b..d30686f 100644 --- a/ips.txt +++ b/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 diff --git a/scripts/1_ips_from_domains_txt.py b/scripts/1_ips_from_domains_txt.py index 8044d6e..a0d2b1a 100644 --- a/scripts/1_ips_from_domains_txt.py +++ b/scripts/1_ips_from_domains_txt.py @@ -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))