mirror of
https://github.com/lgandx/Responder.git
synced 2025-07-06 04:51:23 -07:00
Fix encoding issue in Python 3
This commit is contained in:
parent
b510b2bb25
commit
7420f62082
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
|
||||
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue