diff --git a/src/network_interface.cpp b/src/network_interface.cpp index faef5b1..ab1dc76 100644 --- a/src/network_interface.cpp +++ b/src/network_interface.cpp @@ -224,7 +224,8 @@ NetworkInterface::Info NetworkInterface::info() const { InterfaceInfoCollector collector(&info, iface_id, iface_name.c_str()); info.is_up = false; Utils::generic_iface_loop(collector); - + + // If we didn't even get the hw address or ip address, this went wrong if(!collector.found_hw && !collector.found_ip) { throw std::runtime_error("Error looking up interface address"); }