1
0
mirror of http://galexander.org/git/simplesshd.git synced 2024-12-28 00:48:07 +00:00

remove explicit "0.0.0.0" specification on -p option because it turns out

the "tcp6" listener that results accepts ipv4 after all
This commit is contained in:
Greg Alexander 2014-12-17 22:52:52 -05:00
parent 8a1bc2c4e0
commit 3112a7ecb3
2 changed files with 1 additions and 2 deletions

1
NOTES
View File

@ -72,7 +72,6 @@ it uses select(), I'm not sure how I would honor Thread.interrupt() or
whatever. It's not guaranteed to interrupt select(), and I'm not keen on
adding an arbitrary timeout/polling feature to it.
XXX - try without 0.0.0.0
XXX - implement start on boot
XXX - scp

View File

@ -149,7 +149,7 @@ Java_org_galexander_sshd_SimpleSSHDService_start_1sshd(JNIEnv *env_,
if (port) {
argv[argc++] = "-p";
argv[argc] = malloc(20);
sprintf(argv[argc], "0.0.0.0:%d", (int)port);
sprintf(argv[argc], "%d", (int)port);
argc++;
}
argc += process_extra(extra, &argv[argc],