From c75efa449173c72573b29cd852913b2a03d06292 Mon Sep 17 00:00:00 2001 From: Paul Dee Date: Mon, 26 Jul 2021 02:17:09 +0200 Subject: [PATCH] "Fix" for issue #44 --- ap2-receiver.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ap2-receiver.py b/ap2-receiver.py index 2c789ee..8e78ba8 100644 --- a/ap2-receiver.py +++ b/ap2-receiver.py @@ -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)