Add support for normalised domain names
This commit is contained in:
parent
f253510608
commit
51341c31e5
1 changed files with 4 additions and 0 deletions
|
@ -53,6 +53,10 @@ class Origin(AbstractConfiguration):
|
|||
for proxy in self.proxies:
|
||||
proxy.destroy()
|
||||
|
||||
@property
|
||||
def normalised_domain_name(self):
|
||||
return self.domain_name.replace("www.", "")
|
||||
|
||||
def onion(self) -> Optional[str]:
|
||||
tld = extract(self.domain_name).registered_domain
|
||||
onion = Onion.query.filter(Onion.domain_name == tld).first()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue