1
0
mirror of http://galexander.org/git/simplesshd.git synced 2025-01-03 19:50:55 +00:00

listen to "0.0.0.0:port" because otherwise it seems to default to ipv6 (??)

This commit is contained in:
Greg Alexander 2014-12-16 17:56:47 -05:00
parent e8e3881877
commit 6d872af030

View File

@ -101,7 +101,7 @@ Java_org_galexander_sshd_SimpleSSHDService_start_1sshd(JNIEnv *env_,
if (port) {
argv[argc++] = "-p";
argv[argc] = malloc(20);
sprintf(argv[argc], "%d", (int)port);
sprintf(argv[argc], "0.0.0.0:%d", (int)port);
argc++;
}
fprintf(stderr, "starting dropbear\n");