Merge pull request #27569 from Faless/net/ipv4_link_local
Exclude link-local IPv4s from editor host list.
This commit is contained in:
commit
bdf79f4c6e
1 changed files with 3 additions and 0 deletions
|
@ -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 != "")
|
||||
|
|
Loading…
Reference in a new issue