logger.warning("instance='%s' contains double-dot, removing ...", instance)
instance = instance.replace("..", ".")
- logger.debug("instance='%s'", instance)
- if not validators.domain(instance, rfc_2782=True):
- logger.warning("instance='%s' is not a valid domain - SKIPPED!", instance)
+ probe = instance.split("/")[0]
+ logger.debug("instance='%s',probe='%s'", instance, probe)
+ if not validators.domain(probe, rfc_2782=True):
+ logger.warning("probe='%s' is not a valid domain - SKIPPED!", probe)
continue
- elif instance.endswith(".onion"):
- logger.debug("instance='%s' is a TOR .onion instance - SKIPPED!", instance)
+ elif probe.endswith(".onion"):
+ logger.debug("probe='%s' is a TOR .onion probe - SKIPPED!", probe)
continue
- elif instance.endswith(".i2p") and not config.get("allow_i2p_domain"):
- logger.debug("instance='%s' is an I2P .onion instance - SKIPPED!", instance)
+ elif probe.endswith(".i2p") and not config.get("allow_i2p_domain"):
+ logger.debug("probe='%s' is an I2P .onion probe - SKIPPED!", probe)
continue
- elif instance.endswith(".arpa"):
- logger.debug("instance='%s' is a reverse IP address - SKIPPED!", instance)
+ elif probe.endswith(".arpa"):
+ logger.debug("probe='%s' is a reverse IP address - SKIPPED!", probe)
continue
- elif instance.endswith(".tld"):
- logger.debug("instance='%s' is a fake instance - SKIPPED!", instance)
+ elif probe.endswith(".tld"):
+ logger.debug("probe='%s' is a fake probe - SKIPPED!", probe)
continue
logger.debug("instance='%s' - BEFORE!", instance)
- instance = domain_helper.encode_idna(instance)
+ instance = domain_helper.encode_idna(instance.split("?")[0])
logger.debug("instance='%s' - AFTER!", instance)
if not domain_helper.is_wanted(instance):