[connection.py] less line

Signed-off-by: XiaoliChan <2209553467@qq.com>
main
XiaoliChan 2023-10-24 00:31:45 +08:00
parent a037ac9f4a
commit 96ba933e12
1 changed files with 1 additions and 5 deletions

View File

@ -24,11 +24,7 @@ user_failed_logins = {}
def gethost_addrinfo(hostname):
is_ipv6 = False
is_link_local_ipv6 = False
address_info = {
"AF_INET6":"",
"AF_INET":""
}
address_info = {"AF_INET6":"", "AF_INET":""}
for res in getaddrinfo(hostname, None, AF_UNSPEC, SOCK_DGRAM, IPPROTO_IP, AI_CANONNAME):
af, _, _, canonname, sa = res