mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:59:25 +08:00
Update site.py
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user