aboutsummaryrefslogtreecommitdiff
path: root/ssh
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2022-04-12 00:25:28 +0200
committerTom Smeding <tom@tomsmeding.com>2022-04-12 00:25:28 +0200
commit76a4a2b7e373a217e9eef8e94d92b6e8b3090c6c (patch)
treebb974359fba4aa04cbe165cabfeb798be3c3d3a4 /ssh
parent0b3824088bdb5c9bdd0869c7b9050c8e84595e26 (diff)
server_proxy: Bind to [::] for dual-stack 4/6 bindHEADmaster
Diffstat (limited to 'ssh')
-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;