|
@@ -49,6 +49,8 @@
|
|
|
#endif
|
|
|
|
|
|
|
|
|
+bool fl_reinit_ssh = false; //флаг разрешение переинициализации ssh сервера
|
|
|
+
|
|
|
static const char serverBanner[] = "BT-6709 command server\n";
|
|
|
|
|
|
|
|
@@ -145,7 +147,7 @@ static void *server_worker(void* vArgs)
|
|
|
ret = wolfSSH_accept(threadCtx->ssh);
|
|
|
else
|
|
|
ret = NonBlockSSH_accept(threadCtx->ssh);
|
|
|
-
|
|
|
+ fl_reinit_ssh = true;
|
|
|
cli_state_t *cli_state;
|
|
|
if (!sSettings.sSSH.SSHEnable) {
|
|
|
// kick the client out
|
|
@@ -354,6 +356,7 @@ static void ssh_server(void *arg)
|
|
|
}
|
|
|
|
|
|
while (sSettings.sSSH.SSHEnable) {
|
|
|
+ fl_reinit_ssh = false;
|
|
|
word16 port = sSettings.sSSH.port;
|
|
|
tcp_listen(&ssh_listen_fd, &port, 1, false, false);
|
|
|
|