1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Restoring deleted comment

This commit is contained in:
rklabs
2015-07-22 22:24:53 +05:30
parent 97e6a99c5e
commit 9c9994f129

View File

@@ -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");
}