if block["blocked"] == "":
logger.warning("blocked is empty, blocker='%s'", blocker)
continue
- elif block["blocked"].count("*") >= 0:
+ elif block["blocked"].find("*") >= 0:
logger.debug("blocker='%s' uses obfuscated domains, marking ...", blocker)
instances.set_has_obfuscation(blocker, True)
block["blocked"] = row[0]
origin = row[1]
nodeinfo_url = row[2]
- elif block["blocked"].count("?") >= 0:
+ elif block["blocked"].find("?") >= 0:
logger.debug("blocker='%s' uses obfuscated domains, marking ...", blocker)
instances.set_has_obfuscation(blocker, True)
elif not isinstance(domain_hash, str) and domain_hash is not None:
raise ValueError(f"Parameter domain_hash[]='{type(domain_hash)}' is not of type 'str'")
- if domain.count("*") >= 0:
+ if domain.find("*") >= 0:
logger.debug("blocker='%s' uses obfuscated domains, marking ...", blocker)
instances.set_has_obfuscation(blocker, True)
if row is not None:
logger.debug("domain='%s' de-obscured to '%s'", domain, row[0])
domain = row[0]
- elif domain.count("?") >= 0:
+ elif domain.find("?") >= 0:
logger.debug("blocker='%s' uses obfuscated domains, marking ...", blocker)
instances.set_has_obfuscation(blocker, True)