mirror of
https://github.com/itdoginfo/allow-domains.git
synced 2026-01-25 16:11:10 +03:00
Fixed remove domains for kvas
This commit is contained in:
@@ -89,7 +89,7 @@ def kvas(src, out, single=None, remove={'google.com'}):
|
|||||||
if re.search(r'[^а-я\-]', tldextract.extract(line).domain):
|
if re.search(r'[^а-я\-]', tldextract.extract(line).domain):
|
||||||
domains_single.add(tldextract.extract(line.rstrip()).fqdn)
|
domains_single.add(tldextract.extract(line.rstrip()).fqdn)
|
||||||
|
|
||||||
domains = domains - remove
|
domains -= {f"*{domains}" for domains in removeDomains}
|
||||||
domains = domains.union(domains_single)
|
domains = domains.union(domains_single)
|
||||||
|
|
||||||
domains = sorted(domains)
|
domains = sorted(domains)
|
||||||
|
|||||||
Reference in New Issue
Block a user