mirror of
https://github.com/lgandx/Responder.git
synced 2025-12-06 04:31:30 +00:00
Merge pull request #117 from sbrun/master
Fix encoding issue in Python 3
This commit is contained in:
2
utils.py
2
utils.py
@@ -135,7 +135,7 @@ def FindLocalIP(Iface, OURIP):
|
||||
return OURIP
|
||||
elif OURIP == None:
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
s.setsockopt(socket.SOL_SOCKET, 25, Iface+'\0')
|
||||
s.setsockopt(socket.SOL_SOCKET, 25, str(Iface+'\0').encode('utf-8'))
|
||||
s.connect(("127.0.0.1",9))#RFC 863
|
||||
ret = s.getsockname()[0]
|
||||
s.close()
|
||||
|
||||
Reference in New Issue
Block a user