mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 04:47:48 +08:00
set使用update
This commit is contained in:
+1
-1
@@ -23,6 +23,6 @@ class Lookup(Module):
|
||||
for item in answer:
|
||||
record = item.to_text()
|
||||
subdomains = self.match_subdomains(record)
|
||||
self.subdomains = self.subdomains.union(subdomains)
|
||||
self.subdomains.update(subdomains)
|
||||
logger.log('DEBUG', record)
|
||||
return self.subdomains
|
||||
|
||||
+2
-1
@@ -220,7 +220,8 @@ class Module(object):
|
||||
|
||||
def collect_subdomains(self, resp):
|
||||
subdomains = self.match_subdomains(resp)
|
||||
return self.subdomains.union(subdomains)
|
||||
self.subdomains.update(subdomains)
|
||||
return self.subdomains
|
||||
|
||||
def save_json(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user