[Bug] On a dual-stack network, ping for a single-stack (IPv4 or IPv6 only) service may fail #2211
Closed
3 tasks done
Labels
bug
Something isn't working
Description
When:
Then the ping may fail with a 500 error. This appears to be because Node 18, by default, doesn't enable the Happy Eyeballs algorithm by default (see nodejs/node#41625, implemented in nodejs/node#44731). This means that if a connection over IPv6 fails, then it doesn't automatically fall back to trying with IPv4. It looks like it will be enabled by default in Node 20, but for Node 18,
autoSelectFamily: true
would need to be set when making the HTTP request.Steps to reproduce
homepage version
v0.7.4 (8ec488e, Oct 18, 2023)
Installation method
Docker
Configuration
No response
Container Logs
No response
Browser Logs
No response
Troubleshooting
I did a packet capture to see what was happening with the pings, and saw that only IPv6 was being attempted. The IPv4 connection at the end was me manually using the IPv4 address in a
wget
test from the homepage container.Other
No response
Before submitting, I have made sure to
The text was updated successfully, but these errors were encountered: