Update site.py

This commit is contained in:
dami
2025-07-20 23:19:38 +08:00
parent f7992d8eae
commit 4dbaf5d0f8
+4
View File
@@ -2262,6 +2262,10 @@ location ^~ {from} {\n\
def_var += 'export '+k+'="'+data[k]+'"\n'
return def_var
# def getDomainRootName(self, domain):
# s = domain.split('.',1)
# return s[1]
def getDomainRootName(self, domain):
import tldextract
extracted = tldextract.extract(domain)