aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ssh/server_proxy.c2
1 files changed, 2 insertions, 0 deletions
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;