设置域传送超时为30秒

This commit is contained in:
shmilylty
2019-08-11 19:58:10 +08:00
parent 4bb52f4183
commit 3c8627035d
+1 -1
View File
@@ -34,7 +34,7 @@ class CheckAXFR(Module):
"""
logger.log('DEBUG', f'尝试对{self.domain}的域名服务器{server}进行域传送')
try:
xfr = dns.query.xfr(server, self.domain)
xfr = dns.query.xfr(server, self.domain, timeout=30.0)
zone = dns.zone.from_xfr(xfr)
except Exception as e:
logger.log('DEBUG', str(e))