mirror of
https://github.com/lgandx/Responder.git
synced 2025-12-07 21:21:34 +00:00
fixed minor bug
This commit is contained in:
2
utils.py
2
utils.py
@@ -221,6 +221,8 @@ def FindLocalIP(Iface, OURIP):
|
|||||||
|
|
||||||
def Probe_IPv6_socket():
|
def Probe_IPv6_socket():
|
||||||
"""Return true is IPv6 sockets are really supported, and False when IPv6 is not supported."""
|
"""Return true is IPv6 sockets are really supported, and False when IPv6 is not supported."""
|
||||||
|
if not socket.has_ipv6:
|
||||||
|
return False
|
||||||
try:
|
try:
|
||||||
with socket.socket(socket.AF_INET6, socket.SOCK_STREAM) as s:
|
with socket.socket(socket.AF_INET6, socket.SOCK_STREAM) as s:
|
||||||
s.bind(("::1", 0))
|
s.bind(("::1", 0))
|
||||||
|
|||||||
Reference in New Issue
Block a user