-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude link-local IPv4s from editor host list. #27569
Conversation
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.
I might be missing something but why are link-local addresses not considered a valid option? For example, if two Mac devices are connected directly via an Ethernet cable--when a DHCP server is not enabled--eventually they will self-assign link-local addresses which means its possible to create a connection without explicitly configuring anything. While I've not used this approach with anything Godot-related yet, its still seems like it would a valid option. |
@follower Have you ever tried that out? In my very limited experience with the matter, I was not able to connect to a link-local address (169.254.0.0/16). |
I think this is OS-dependent. Also there might be multicast 224/8 addresses and other addresses which might not be wanted depending on particular system settings. The naive solution might break things, too.
|
@slapin it wouldn't make sense to list multicast addresses, as TCP can't work with multicast, so this is certainly not a problem (and multicast addresses, are already excluded).
This is exactly what I'm trying to do here, this PR do not change the result from
I don't think having a text edit there is a good idea. It would just be confusing to many people, and prone to errors. All for very exceptional cases (i.e. using editor-debugger connection on a broken network setup). Command line options are not affected, |
I agree with @Faless - having a simple button that works in 99% of cases is preferable as long as CLI options exist. Note that we currently also exclude IPv6 link local adresses. IPv4 link local adresses in comparison are IMO both uncommon and nonstandard. We can discuss adding UI options for more control over this, but as this is just for the Editor debugger, and only does for IPv4 (where again, link local addresses are esoteric anyhow) what is already done for IPv6, this is fine to merge by me. Further discussion on more elaborate handling should IMO be done in a PR for that or an issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine to merge by me, as stated above :)
I think adding an option in network section of preferences will not hurt
(one of LANs
I use assigns windows auto-assign addresses (which became IPv4 "link local"
addresses)
and actually NATs them to outside world to avoid having DHCP server).
Not nice setup, but I guess quite common with older windows networks.
Patching again just for that is annoying.
…On Wed, May 1, 2019 at 9:49 PM Max Hilbrunner ***@***.***> wrote:
***@***.**** approved this pull request.
Fine to merge by me, as stated above :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27569 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAABPU3NBELUPBQYS6JZDYTPTHQZ5ANCNFSM4HCSMWJA>
.
|
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.