summaryrefslogtreecommitdiff
path: root/editor/editor_settings.cpp
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2019-05-14 16:08:16 +0200
committerGitHub <noreply@github.com>2019-05-14 16:08:16 +0200
commitbdf79f4c6e98c0e95a31fc6e05d4a072b4fcb362 (patch)
tree1fe8cb768b32f02ebd7ef1529f083679a78f89e1 /editor/editor_settings.cpp
parentd7114a68adf2655bc28272007da0f1a981a4a179 (diff)
parent2bb39ac56e18fed2ef75ec3d7c6f0366bbbef90d (diff)
Merge pull request #27569 from Faless/net/ipv4_link_local
Exclude link-local IPv4s from editor host list.
Diffstat (limited to 'editor/editor_settings.cpp')
-rw-r--r--editor/editor_settings.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp
index e80d3e1b37..c32dcb0ace 100644
--- a/editor/editor_settings.cpp
+++ b/editor/editor_settings.cpp
@@ -973,6 +973,9 @@ void EditorSettings::setup_network() {
// link-local IPv6 addresses don't work, skipping them
if (ip.begins_with("fe80:0:0:0:")) // fe80::/64
continue;
+ // Same goes for IPv4 link-local (APIPA) addresses.
+ if (ip.begins_with("169.254.")) // 169.254.0.0/16
+ continue;
if (ip == current)
lip = current; //so it saves
if (hint != "")