mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-09-08 14:48:25 -04:00
Merge pull request #1149 from kiwix/feature/remove-ip-prefix
Remove 169.254 prefix
This commit is contained in:
commit
c8bddd6cf4
@ -229,7 +229,7 @@ IpAddress getBestPublicIps() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#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& prefix : v4prefixes) {
|
||||||
for (const auto& kv : interfaces) {
|
for (const auto& kv : interfaces) {
|
||||||
const auto& interfaceIps = kv.second;
|
const auto& interfaceIps = kv.second;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user