mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 04:47:48 +08:00
设置域传送超时为30秒
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user