mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
Restoring deleted comment
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user