Make switch broadcast detection ipv6 aware (even unused for now)

This commit is contained in:
Benau 2021-03-05 09:47:20 +08:00
parent b93a24a184
commit db98783f09

View File

@ -425,7 +425,6 @@ std::vector<SocketAddress> ServersManager::getBroadcastAddresses(bool ipv6)
Log::warn("ServersManager", "Failed to get broadcast address! Error 0x%x", resultCode); Log::warn("ServersManager", "Failed to get broadcast address! Error 0x%x", resultCode);
result = getDefaultBroadcastAddresses(); result = getDefaultBroadcastAddresses();
} }
return result;
#elif !defined(WIN32) #elif !defined(WIN32)
struct ifaddrs *addresses, *p; struct ifaddrs *addresses, *p;