mirror of
https://github.com/lgandx/Responder.git
synced 2025-07-06 13:01:24 -07:00
Merge pull request #117 from sbrun/master
Fix encoding issue in Python 3
This commit is contained in:
commit
eb449bb061
1 changed files with 1 additions and 1 deletions
2
utils.py
2
utils.py
|
@ -135,7 +135,7 @@ def FindLocalIP(Iface, OURIP):
|
||||||
return OURIP
|
return OURIP
|
||||||
elif OURIP == None:
|
elif OURIP == None:
|
||||||
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
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
|
s.connect(("127.0.0.1",9))#RFC 863
|
||||||
ret = s.getsockname()[0]
|
ret = s.getsockname()[0]
|
||||||
s.close()
|
s.close()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue