fix finding default address on windows
This commit is contained in:
parent
a352683702
commit
1e3aca0837
|
@ -49,7 +49,7 @@ static bool is_useable_interface(const IP_ADAPTER_ADDRESSES * ifa)
|
||||||
// is an ethernet or wireless interface AND
|
// is an ethernet or wireless interface AND
|
||||||
(ifa->IfType == IF_TYPE_ETHERNET_CSMACD || ifa->IfType == IF_TYPE_IEEE80211) &&
|
(ifa->IfType == IF_TYPE_ETHERNET_CSMACD || ifa->IfType == IF_TYPE_IEEE80211) &&
|
||||||
// is up
|
// is up
|
||||||
ifa->OperStatus != IfOperStatusUp;
|
ifa->OperStatus == IfOperStatusUp;
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::string default_ip_address(const IP_ADAPTER_ADDRESSES * next)
|
static std::string default_ip_address(const IP_ADAPTER_ADDRESSES * next)
|
||||||
|
|
Loading…
Reference in New Issue