elif block["blocked"].endswith(".onion"):
logger.debug("blocked='%s' is a TOR .onion domain - SKIPPED", block["blocked"])
continue
- elif block["blocked"].endswith(".i2p") and config.get("allow_i2p_domain") == "true":
+ elif block["blocked"].endswith(".i2p") and not config.get("allow_i2p_domain") == "true":
logger.debug("blocked='%s' is an I2P .onion domain - SKIPPED", block["blocked"])
continue
elif block["blocked"].endswith(".arpa"):
elif block["blocked"].endswith(".onion"):
logger.debug("blocked='%s' is a TOR onion domain name - SKIPPED!", block["blocked"])
continue
- elif block["blocked"].endswith(".i2p") and config.get("allow_i2p_domain") == "true":
+ elif block["blocked"].endswith(".i2p") and not config.get("allow_i2p_domain") == "true":
logger.debug("blocked='%s' is an I2P onion domain name - SKIPPED!", block["blocked"])
continue
elif block["blocked"].endswith(".arpa"):
raise ValueError(f"domain='{domain}' is not a valid domain")
elif domain.endswith(".onion"):
raise ValueError(f"domain='{domain}' is a TOR, please don't crawl them!")
- elif domain.endswith(".i2p") and config.get("allow_i2p_domain") == "true":
+ elif domain.endswith(".i2p") and not config.get("allow_i2p_domain") == "true":
raise ValueError(f"domain='{domain}' is an I2P, please don't crawl them!")
elif domain.endswith(".arpa"):
raise ValueError(f"domain='{domain}' is a domain for reversed IP addresses, please don't crawl them!")
elif domain.endswith(".onion"):
logger.debug("domain='%s' is a TOR .onion domain - setting False ...", domain)
wanted = False
- elif domain.endswith(".i2p") and config.get("allow_i2p_domain") == "true":
+ elif domain.endswith(".i2p") and not config.get("allow_i2p_domain") == "true":
logger.debug("domain='%s' is an I2P domain - setting False ...", domain)
wanted = False
elif domain.endswith(".tld"):
elif domain.endswith(".onion"):
logger.debug("domain='%s' is a TOR .onion domain - SKIPPED", domain)
continue
- elif domain.endswith(".i2p") and config.get("allow_i2p_domain") == "true":
+ elif domain.endswith(".i2p") and not config.get("allow_i2p_domain") == "true":
logger.debug("domain='%s' is an I2P .onion domain - SKIPPED", domain)
continue
elif domain.endswith(".arpa"):