Line cleanup

This commit is contained in:
sgourdas 2024-09-19 11:21:18 +03:00
parent 02ab2ce5a5
commit 534916929d

View File

@ -217,8 +217,7 @@ std::string getBestPublicIp(bool ipv6) {
std::map<std::string, IpAddress> interfaces = getNetworkInterfacesIPv4Or6();
#ifndef _WIN32
const char* const prioritizedNames[] =
{ "eth0", "eth1", "wlan0", "wlan1", "en0", "en1" };
const char* const prioritizedNames[] = { "eth0", "eth1", "wlan0", "wlan1", "en0", "en1" };
for(auto name: prioritizedNames) {
auto it=interfaces.find(name);
if(it != interfaces.end() && !(ipv6 && (*it).second.addr6.empty())) {