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

Incase of tunnel interface(VPN) mac address can be 0

This commit is contained in:
rklabs
2015-07-22 21:08:40 +05:30
parent 79c0023f75
commit d09450980a

View File

@@ -224,10 +224,7 @@ 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 event get the hw address, this went wrong
if(!collector.found_hw) {
throw std::runtime_error("Error looking up interface address");
}
return info;
}