Skip to content

Commit

Permalink
Merge pull request #1149 from kiwix/feature/remove-ip-prefix
Browse files Browse the repository at this point in the history
Remove 169.254 prefix
  • Loading branch information
kelson42 authored Oct 9, 2024
2 parents 0de9bd0 + 5d1b627 commit c8bddd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/networkTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c8bddd6

Please sign in to comment.