You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running hefurd on a new host with -ipv6 I get the error message: "hefur: fatal: failed to listen on the port 6969: Cannot assign requested address". Other processes don't have any problems listening to the port, for example nc -6 -l -p 6969 (when hefurd isn't running).
OS: Ubuntu 20.04, amd64. Hefur as from git today.
The text was updated successfully, but these errors were encountered:
If invoked as hefurd -ipv6 it will fail because the code invokes inet_pton with AF_INET6 but the default value for the command line option -bind-addr is "0.0.0.0".
According to man pages inet_pton docs the function when in AF_INET6 mode explicitly only handles addresses in IPv6 format, documenting in the BUGS section that dotted octet notation needs to be IPv4-mapped in IPv6 format.
AF_INET6 does not recognize IPv4 addresses. An explicit IPv4-mapped IPv6 address must be supplied in src instead.
A workaround is to specify -bind-addr :: when launching the daemon. As for why/how this behaviour has changed, my guess would be library improvements.
When running hefurd on a new host with -ipv6 I get the error message: "hefur: fatal: failed to listen on the port 6969: Cannot assign requested address". Other processes don't have any problems listening to the port, for example nc -6 -l -p 6969 (when hefurd isn't running).
OS: Ubuntu 20.04, amd64. Hefur as from git today.
The text was updated successfully, but these errors were encountered: