This commit is contained in:
Jing Ling
2020-08-01 17:41:33 +08:00
parent f5e88e0b05
commit 365a2ec7f7
52 changed files with 53 additions and 62 deletions
-10
View File
@@ -213,16 +213,6 @@ class Module(object):
def match_subdomains(self, html, distinct=True, fuzzy=True):
return utils.match_subdomains(self.domain, html, distinct, fuzzy)
@staticmethod
def get_maindomain(domain):
"""
Get main domain
:param str domain: domain
:return: main domain
"""
return Domain(domain).registered()
def save_json(self):
"""
Save the results of each module as a json file
+1 -1
View File
@@ -622,7 +622,7 @@ def check_version(local):
logger.log('INFOR', f'The current version {local} is already the latest version')
def get_maindomain(domain):
def get_main_domain(domain):
return Domain(domain).registered()