mirror of
https://github.com/lgandx/Responder.git
synced 2025-08-19 21:03:33 -07:00
Update utils.py
Use elif
This commit is contained in:
parent
063b31e6ca
commit
0b4f961b79
1 changed files with 11 additions and 13 deletions
4
utils.py
4
utils.py
|
@ -101,11 +101,9 @@ def FindLocalIP(Iface, OURIP):
|
|||
return '0.0.0.0'
|
||||
|
||||
try:
|
||||
|
||||
if IsOsX():
|
||||
return OURIP
|
||||
else:
|
||||
if OURIP == None:
|
||||
elif OURIP == None:
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
s.setsockopt(socket.SOL_SOCKET, 25, Iface+'\0')
|
||||
s.connect(("127.0.0.1",9))#RFC 863
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue