fix finding default address on windows

This commit is contained in:
walker0643 2018-08-05 13:13:33 -04:00
parent a352683702
commit 1e3aca0837
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ static bool is_useable_interface(const IP_ADAPTER_ADDRESSES * ifa)
// is an ethernet or wireless interface AND
(ifa->IfType == IF_TYPE_ETHERNET_CSMACD || ifa->IfType == IF_TYPE_IEEE80211) &&
// is up
ifa->OperStatus != IfOperStatusUp;
ifa->OperStatus == IfOperStatusUp;
}
static std::string default_ip_address(const IP_ADAPTER_ADDRESSES * next)