try fix
This commit is contained in:
parent
f30ac98ed8
commit
d02f288c8a
4
main.py
4
main.py
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user