Merge pull request #1149 from kiwix/feature/remove-ip-prefix

Remove 169.254 prefix
This commit is contained in:
Kelson 2024-10-09 05:25:16 +00:00 committed by GitHub
commit c8bddd6cf4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -229,7 +229,7 @@ IpAddress getBestPublicIps() {
}
}
#endif
const char* const v4prefixes[] = { "192.168", "172.16", "10.0", "169.254" };
const char* const v4prefixes[] = { "192.168", "172.16", "10.0" };
for (const auto& prefix : v4prefixes) {
for (const auto& kv : interfaces) {
const auto& interfaceIps = kv.second;