-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
Also listen to IPv6 by default #3347
Comments
@zargony I'm wondering if this could create any kind of problems in docker container? I mean |
@robertsLando Yes, I suppose. I actually discovered it running zwave-js-ui in k8s with IPv6 only while it previously worked in my dual stack k8s. So it definitely works in containers. From what I understand, binding Btw, the same goes for the websocket server on port 3000. It binds to IPv4 only |
Ok let me do some checks |
FYI this affect hosts with IPv6 support disabled. |
@Jypy Do you mean that if ipv6 is disabled this would prevent the UI to be reached? |
yep, actually, it crashes because it can't bind to :: |
Oh that's bad... Let's see if this is a recurring issue I could do a revert in case. I dunno if there are more that benefit from this change then the ones that have problems. Thanks for your report! |
No idea, you'll soon be aware if that's the case.
No problem, happy to help! |
According to server.listen docs (emphasis mine):
Maybe that would support both cases? |
just an FYI - this change broke my docker-compose environment where I have ipv6 disabled. I had to fix by setting an environment variable of HOST and setting it to the value of the container IP For some reason setting HOST back to 0.0.0.0 did not fix it either |
This maybe a good alternative! I will try, sorry for the issues guys |
My rock solid install would not restart after upgrading to 9.2.1 because of this issue. Even downgrading to 9.2.0 didn't help. Per Skullduggeryism's post, I added "- HOST=0.0.0.0" to my docker-compose.yml file, did an upgrade to 9.2.1, and all is well again. FWIW - I also have IPv6 disabled through the kernel because I have no need for IPv6 on my LAN. |
Can someone of you give a try to: #3362 ? I have triggered this workflow: https://github.com/zwave-js/zwave-js-ui/actions/runs/6571215103 Once it ends, you can use docker |
@zargony could you confirm me that I tested locally and seems that I can reach my instance using https://[::1]:8091 |
@robertsLando Using image |
Good for the UI side, for the ZwaveJs server side the problem is that they set My suggestion is to open an issue there to suggest the change like I did on my side to simply not provide the host as default. I can merge the fix on my side |
Makes sense. Thanks! |
Is your feature request related to a problem? Please describe.
zwave-js-ui listens to 0.0.0.0:8091 by default, which is IPv4 only, so it doesn't respond to IPv6 requests.
Describe the solution you'd like
It would be nice to listen to IPv6 as well by default since IPv6 is widely used everywhere nowadays. All that's needed is bind to
::
instead of0.0.0.0
(e.g. by settingHOST="::"
in the current version). Imho, this should be the default. (Generally, it works well binding to::
as this listens on IPv6 and IPv4 on dual stack systems. Not sure if there are systems out there that would bind to IPv6 only with::
)Describe alternatives you've considered
The alternative to listen to IPv6 only by default would be possible but maybe a step too far for now ;)
The text was updated successfully, but these errors were encountered: