add '#' started comment ignoring in cidr files

This commit is contained in:
Pavel Muhortov 2023-09-03 20:36:33 +03:00
parent 8b2b1d3de0
commit bd8324d087

View File

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