feat: 系统工具改为异步,增加tcpdump工具

This commit is contained in:
jiangweidong
2023-08-07 09:37:24 +08:00
committed by Bryan
parent 8accd296b8
commit 7636255533
13 changed files with 358 additions and 165 deletions

View File

@@ -113,7 +113,6 @@ def get_ip_city(ip):
def lookup_domain(domain):
try:
return socket.gethostbyname(domain)
return socket.gethostbyname(domain), ''
except Exception as e:
print("Cannot resolve %s: Unknown host, %s" % (domain, e))
return None
return None, f'Cannot resolve {domain}: Unknown host, {e}'