mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
fix finding default address on windows
This commit is contained in:
parent
a352683702
commit
1e3aca0837
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue