This commit is contained in:
Maxim Slipenko 2023-09-10 20:30:55 +03:00
parent f30ac98ed8
commit d02f288c8a

View File

@ -159,9 +159,9 @@ def start(args):
for group in data: for group in data:
hosts, description = group hosts, description = group
for host in hosts: for host in hosts:
if not host[0].isdigit(): try:
ipnet = socket.gethostbyname(host) ipnet = socket.gethostbyname(host)
else: except:
ipnet = host ipnet = host
ipnetwork = IPNetwork(ipnet) ipnetwork = IPNetwork(ipnet)