From bd8324d08734787b02b84bcd47b56dd16244cf96 Mon Sep 17 00:00:00 2001 From: Pavel Muhortov Date: Sun, 3 Sep 2023 20:36:33 +0300 Subject: [PATCH] add '#' started comment ignoring in cidr files --- my_route.py | 1 + 1 file changed, 1 insertion(+) diff --git a/my_route.py b/my_route.py index 428dc5d..ad573b1 100755 --- a/my_route.py +++ b/my_route.py @@ -312,6 +312,7 @@ class Route(Connect): gw_type = gw.split('-')[0] gw_name = gw.split('-')[1] for route in cidr_data.splitlines(): + route = route.split('#')[0].strip() route_counter += 1 if platform.startswith('win32'): pass