mirror of
https://github.com/netzbegruenung/green-spider.git
synced 2024-05-01 08:34:51 +02:00
Remove unused expand_hostname function from dns-resolution
This commit is contained in:
parent
aa0273875d
commit
ce1cd1b99b
|
@ -33,24 +33,6 @@ class Checker(AbstractChecker):
|
|||
|
||||
return results
|
||||
|
||||
|
||||
def expand_hostname(self, hostname):
|
||||
"""
|
||||
Create variations of subdomains
|
||||
"""
|
||||
hostnames = set()
|
||||
|
||||
hostnames.add(hostname)
|
||||
if hostname.startswith('www.'):
|
||||
# remove 'www.' prefix
|
||||
hostnames.add(hostname[4:])
|
||||
else:
|
||||
# add 'www.' prefix
|
||||
hostnames.add('www.' + hostname)
|
||||
|
||||
return sorted(list(hostnames))
|
||||
|
||||
|
||||
def resolve_hostname(self, hostname):
|
||||
"""
|
||||
Resolve one to IPv4 address(es)
|
||||
|
|
Loading…
Reference in a new issue