mirror of
http://galexander.org/git/simplesshd.git
synced 2024-11-14 02:59:05 +00:00
add -R for DROPBEAR_DELAY_HOSTKEY
This commit is contained in:
parent
8a8b4c3acb
commit
9ea9717624
@ -83,7 +83,7 @@ Java_org_galexander_sshd_SimpleSSHDService_start_1sshd(JNIEnv *env_,
|
||||
|
||||
pid = fork();
|
||||
if (pid == 0) {
|
||||
char *argv[10] = { "sshd", NULL };
|
||||
char *argv[100] = { "sshd", NULL };
|
||||
int argc = 1;
|
||||
const char *logfn;
|
||||
int logfd;
|
||||
@ -96,6 +96,8 @@ Java_org_galexander_sshd_SimpleSSHDService_start_1sshd(JNIEnv *env_,
|
||||
/* replace stderr, so the output is preserved... */
|
||||
dup2(logfd, 2);
|
||||
}
|
||||
|
||||
argv[argc++] = "-R"; /* enable DROPBEAR_DELAY_HOSTKEY */
|
||||
if (port) {
|
||||
argv[argc++] = "-p";
|
||||
argv[argc] = malloc(20);
|
||||
|
Loading…
Reference in New Issue
Block a user