snh 3 months ago committed by Gitea
parent 156c2f8087
commit d5fc7410df

@ -82,7 +82,6 @@ def inet_ntop(address_family, packed_ip):
) != 0:
raise socket.error(ctypes.FormatError())
# 返回IP字符串
return ip_string[:ip_string_size.value - 1]
# 如果当前操作系统是Windows将自定义的inet_pton和inet_ntop函数添加到socket库中

Loading…
Cancel
Save