|
@@ -144,8 +144,9 @@ static void *server_worker(void* vArgs)
|
|
|
ret = NonBlockSSH_accept(threadCtx->ssh);
|
|
|
|
|
|
cli_state_t *cli_state;
|
|
|
-
|
|
|
- if (ret == WS_SUCCESS) {
|
|
|
+ if (!sSettings.sSSH.SSHEnable) {
|
|
|
+
|
|
|
+ } else if (ret == WS_SUCCESS) {
|
|
|
if ((cli_state = alloc_state())) {
|
|
|
cli_state->num_connect = threadCtx->ssh;
|
|
|
cli_state->input_state = CLI_CMD;
|