-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
[curl] Added --interface argument to improve IPv6 support #30
base: master
Are you sure you want to change the base?
Conversation
@klukonin are we 100% sure this change will not affect ipv4 only users? I think the best thing to do is to discuss this on the OpenWISP forum/mailing list before merging this change. Could you open a thread there please? Could you also change the commit message to something like |
Sure. No problem. |
@nemesisdesign |
@klukonin great news. I will also perform some tests when I get back from a work trip on monday You edited the pull request title successfully, now you should edit the commit message too, you can do this with:
This will update the commit sent in this pull request automatically. |
I think the current patch may cause problems if someone is using a different uplink interface than what is used to calculate the mac-address of the device. The most conservative way to introduce support for ipv6 link-local, in order to not risk breaking usage for existing installations, is to introduce a configuration option which is disabled by default and has 3 possible values:
The name for this new configuration option could be simply "interface". |
I am not sure this thing can work: I have tried to tell CURL to send an HTTP request to an ipv6 link local address but I couldn't get it working. If you could give me an example of how to replicate the setup you are interested in supporting I will give it a try. |
[curl] Added --interface argument to improve IPv6 support.
Curl need to be run with --interface option for normal work with ipv6. It does not have an effect on ipv4, but help to manage devices through ipv6.
Also this can be present as a security improvement.
May be better to add this to the official docs.