-
Notifications
You must be signed in to change notification settings - Fork 29
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
IPv6 AAAA records don't connect, while raw [::] addresses do #15
Comments
Have you been able to further investigate this issue, @rubdos? I updated the package's dependencies, maybe this solved the problem. If not, let me know :) |
Hey @JKRhb, we couldn't have this lab session at the uni this year because of COVID... We did remote Zigbee stuff instead. I hope to have it back next year though, which would be November 2021. @thielemans, do you know by any chance whether the dependency bump would have helped here? |
Fingers crossed! :) Regarding the issue, I noticed that there have been similar problems in other packages that have been using the default reqOpts.agent = coap.globalAgentIPv6; will be included. Do you think this could be a working solution? |
I'm not 100% sure; if the Besides, this issue should probably be resolved at https://github.com/mcollina/node-coap and not here, now I think about it. DNS and IP is a lower layer than what this package should provide, but I'll have to dig deeper in the source code for that. By the way (re #17): binding on Thanks for coming back to this, sorry that I'm currently not very helpful! |
No worries, thank you for your helpful feedback and for raising this issue in the first place! I will try to investigate this problem further in the next days, especially when it comes to the potential breaking change the switch to
You are right – maybe it would be more accurate to label the option as "Use UDP6 socket" and turn it off by default? |
I just opened #25 as a potential fix/workaround. |
Avoid issues on operating systems that do not use v4/v6 hybrid sockets (see #15).
Avoid issues on operating systems that do not use v4/v6 hybrid sockets (see #15).
The COVID situation finally allows us to give this lab again on-campus, which means that I'm again bouncing on this. So, it appears that the way I suggest we merge #25;, I can confirm after tomorrow 3pm CEST whether that patch is sufficient as workaround. |
Thank you for the update on this issue and filing coapjs/node-coap#320! I updated the workaround in #25 and hope that works for now. Otherwise I totally agree with you that this should be handled on a lower level and I am looking forward to the discussion over at |
What works:
coap://[fd01::dead:beef]/abc/def
, what doesn't work:coap://lamp01/abc/def
, where lamp01 resolves tofd01::dead:beef
on a AAAA record.I had to manually add
to
function _makeRequest(msg)
for the DNS record to resolve.I fear this is a limitation in the coap library though. If so, I'll direct my issue there. However I think it would imply a major interface redesign there, and maybe the node-red interface should expose a workaround -- somehow.
The text was updated successfully, but these errors were encountered: