Skip to content

Commit

Permalink
[darwin] Be a bit less restrictive when it comes to filtering interfa…
Browse files Browse the repository at this point in the history
…ces for mdns broadcasting (#22667)
  • Loading branch information
vivien-apple authored and pull[bot] committed Oct 3, 2022
1 parent ecb3910 commit 2515852
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/Darwin/DnssdHostNameRegistrar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ void LogDetails(nw_interface_t interface, InetInterfacesVector inetInterfaces, I
bool HasValidFlags(unsigned int flags, bool allowLoopbackOnly)
{
VerifyOrReturnValue(!allowLoopbackOnly || (flags & IFF_LOOPBACK), false);
VerifyOrReturnValue(!(flags & IFF_POINTOPOINT), false);
VerifyOrReturnValue((flags & IFF_RUNNING), false);
VerifyOrReturnValue((flags & IFF_MULTICAST), false);
return true;
Expand All @@ -183,7 +182,8 @@ bool HasValidFlags(unsigned int flags, bool allowLoopbackOnly)
bool HasValidNetworkType(nw_interface_t interface)
{
auto interfaceType = nw_interface_get_type(interface);
return interfaceType == nw_interface_type_wifi || interfaceType == nw_interface_type_wired;
return interfaceType == nw_interface_type_wifi || interfaceType == nw_interface_type_wired ||
interfaceType == nw_interface_type_other;
}

bool IsValidInterfaceId(uint32_t targetInterfaceId, nw_interface_t interface)
Expand Down

0 comments on commit 2515852

Please sign in to comment.