mirror of
https://github.com/lgandx/Responder.git
synced 2025-07-05 20:41:22 -07:00
fixed minor bug
This commit is contained in:
parent
fa297c8a16
commit
e51f24e36c
1 changed files with 3 additions and 1 deletions
4
utils.py
4
utils.py
|
@ -221,10 +221,12 @@ def FindLocalIP(Iface, OURIP):
|
|||
|
||||
def Probe_IPv6_socket():
|
||||
"""Return true is IPv6 sockets are really supported, and False when IPv6 is not supported."""
|
||||
if not socket.has_ipv6:
|
||||
return False
|
||||
try:
|
||||
with socket.socket(socket.AF_INET6, socket.SOCK_STREAM) as s:
|
||||
s.bind(("::1", 0))
|
||||
return True
|
||||
return True
|
||||
except:
|
||||
return False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue