diff --git a/main.py b/main.py index 9015800..8e6c0de 100644 --- a/main.py +++ b/main.py @@ -159,9 +159,9 @@ def start(args): for group in data: hosts, description = group for host in hosts: - if not host[0].isdigit(): + try: ipnet = socket.gethostbyname(host) - else: + except: ipnet = host ipnetwork = IPNetwork(ipnet)