Hi, I'm trying to bind a mina sshd server to be available on ipv4 and ipv6 addresses but it seems to only work for ipv4. When setting the hostname (via `setHost`) then it only binds to ipv4. And also if the hostname is not set (which according to the documentation should bind to all addresses) it only binds to ipv4.
If I explicitly set an ipv6 entry like "::" or "::1" I get an exception: ``` ERROR Nio2Acceptor - bind(/[::1]:30983) - failed (SocketException) to bind: Protocol family unavailable [ERROR] java.net.SocketException: Protocol family unavailable [ERROR] at java.base/sun.nio.ch.Net.bind0(Native Method) [ERROR] at java.base/sun.nio.ch.Net.bind(Net.java:555) [ERROR] at java.base/sun.nio.ch.Net.bind(Net.java:544) [ERROR] at java.base/sun.nio.ch.AsynchronousServerSocketChannelImpl.bind(AsynchronousServerSocketChannelImpl.java:164) [ERROR] at org.apache.sshd.common.io.nio2.Nio2Acceptor.bind(Nio2Acceptor.java:83) [ERROR] at org.apache.sshd.common.io.nio2.Nio2Acceptor.bind(Nio2Acceptor.java:173) ... ``` I was under the impression that ipv6 is supported, or isn't it? Kind regards, Jens -- Wegtam GmbH, CTO 2022-11-02 16:20 Homepage : https://www.wegtam.com BOFH excuse #73: Daemons did it
signature.asc
Description: PGP signature