From 76a4a2b7e373a217e9eef8e94d92b6e8b3090c6c Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Tue, 12 Apr 2022 00:25:28 +0200 Subject: server_proxy: Bind to [::] for dual-stack 4/6 bind --- ssh/server_proxy.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ssh') diff --git a/ssh/server_proxy.c b/ssh/server_proxy.c index 98a87bc..12e8310 100644 --- a/ssh/server_proxy.c +++ b/ssh/server_proxy.c @@ -517,8 +517,10 @@ int main(int argc, char **argv) { } bool procconfig = false; + const char *bindaddr = "::"; // this seems to work for ipv4 too? const char *ciphers_str = "aes256-gcm@openssh.com,aes256-ctr,aes256-cbc"; bool ok = true; + ok &= ssh_bind_options_set(srvbind, SSH_BIND_OPTIONS_BINDADDR, bindaddr) == SSH_OK; ok &= ssh_bind_options_set(srvbind, SSH_BIND_OPTIONS_PROCESS_CONFIG, &procconfig) == SSH_OK; ok &= ssh_bind_options_set(srvbind, SSH_BIND_OPTIONS_BINDPORT, &ssh_port) == SSH_OK; ok &= ssh_bind_options_set(srvbind, SSH_BIND_OPTIONS_IMPORT_KEY, host_key) == SSH_OK; -- cgit v1.2.3-70-g09d2