From 92e67e34be9f73f17a5c4433464f92915fde564c Mon Sep 17 00:00:00 2001 From: "a.chernenko" Date: Wed, 19 Nov 2025 19:37:29 +1000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=82=D0=BA=D0=B0=D1=82=20=D1=80=D0=B5?= =?UTF-8?q?=D0=B3=D1=83=D0=BB=D1=8F=D1=80=D0=BA=D0=B8=20=D0=BF=D0=BE=D0=B8?= =?UTF-8?q?=D1=81=D0=BA=D0=B0=20ip.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- download.py | 2 +- list | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/download.py b/download.py index 7b112bf..ec07d42 100755 --- a/download.py +++ b/download.py @@ -9,7 +9,7 @@ from include import net_tree from include.http_header import get_headers # компилируем регулярку поиска ipv4 адреса -ipv4_find_str=re.compile(r"[^0-9.]?(25[0-5]|2[0-4][0-9]|1?[0-9][0-9]|[0-9])\.(25[0-5]|2[0-4][0-9]|1?[0-9][0-9]|[0-9])\.(25[0-5]|2[0-4][0-9]|1?[0-9][0-9]|[0-9])\.(25[0-5]|2[0-4][0-9]|1?[0-9][0-9]|[0-9])(/([0-9]{1}[0-9]*))?[^0-9.]?") +ipv4_find_str=re.compile(r"[^0-9.]?(25[0-5]|2[0-4][0-9]|1?[0-9][0-9]|[1-9])\.(25[0-5]|2[0-4][0-9]|1?[0-9][0-9]|[0-9])\.(25[0-5]|2[0-4][0-9]|1?[0-9][0-9]|[0-9])\.(25[0-5]|2[0-4][0-9]|1?[0-9][0-9]|[0-9])(/([0-9]{1}[0-9]*))?[^0-9.]?") # метод сбора словаря ip адресов ipv4 из текста def ipv4_find(strip:str, size:int): diff --git a/list b/list index 5f077af..6e85302 100644 --- a/list +++ b/list @@ -1,10 +1,4 @@ { - 'DEFAULT': { - 'community': '65432:LOCATION,65432:1000', - 'list': [ - { 'static4': '0.0.0.0/0,0.0.0.0/0', 'ipv4': True, 'ipv6': False }, - ] - }, 'RU': { 'community': '65432:LOCATION,65432:200', 'list': [