You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Exclude link-local IPv4s from editor host list.
IPv4 has link-local addresses like IPv6 (block 169.254.0.0/16). Those addresses should not be considered a valid option when selecting the `remote_host` setting for the debugger.
This commit is contained in:
@@ -962,6 +962,9 @@ void EditorSettings::setup_network() {
|
|||||||
// link-local IPv6 addresses don't work, skipping them
|
// link-local IPv6 addresses don't work, skipping them
|
||||||
if (ip.begins_with("fe80:0:0:0:")) // fe80::/64
|
if (ip.begins_with("fe80:0:0:0:")) // fe80::/64
|
||||||
continue;
|
continue;
|
||||||
|
// Same goes for IPv4 link-local (APIPA) addresses.
|
||||||
|
if (ip.begins_with("169.254.")) // 169.254.0.0/16
|
||||||
|
continue;
|
||||||
if (ip == current)
|
if (ip == current)
|
||||||
lip = current; //so it saves
|
lip = current; //so it saves
|
||||||
if (hint != "")
|
if (hint != "")
|
||||||
|
|||||||
Reference in New Issue
Block a user