Skip to content

Commit

Permalink
"Fix" for issue #44
Browse files Browse the repository at this point in the history
  • Loading branch information
systemcrash committed Jul 26, 2021
1 parent 389da64 commit c75efa4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ap2-receiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,12 @@ def list_available_flags():

setup_global_structs(args)

# Rudimentary check for whether v4/6 are still None (no IP found)
if IPV4 is None and IPV6 is None:
print("[!] No IP found on chosen interface.")
list_network_interfaces()
exit(-1)

print("Interface: %s" % IFEN)
print("IPv4: %s" % IPV4)
print("IPv6: %s" % IPV6)
Expand Down

0 comments on commit c75efa4

Please sign in to comment.