mirror of
https://github.com/codingo/Interlace.git
synced 2025-12-18 15:24:23 +01:00
Fixed support for URLs.
This commit is contained in:
@@ -151,8 +151,12 @@ class InputHelper(object):
|
|||||||
destination_set.add(ips)
|
destination_set.add(ips)
|
||||||
continue
|
continue
|
||||||
# checking for CIDR
|
# checking for CIDR
|
||||||
|
|
||||||
if not arguments.nocidr and "/" in ips:
|
if not arguments.nocidr and "/" in ips:
|
||||||
|
if len(ips.split("/")) == 2 and ip.split("/")[1].replace("\n", "").isdigit():
|
||||||
destination_set.update(InputHelper._get_cidr_to_ips(ips))
|
destination_set.update(InputHelper._get_cidr_to_ips(ips))
|
||||||
|
else:
|
||||||
|
destination_set.add(ips)
|
||||||
# checking for IPs in a range
|
# checking for IPs in a range
|
||||||
elif "-" in ips:
|
elif "-" in ips:
|
||||||
destination_set.update(InputHelper._get_ips_from_range(ips))
|
destination_set.update(InputHelper._get_ips_from_range(ips))
|
||||||
|
|||||||
Reference in New Issue
Block a user