server/telnet: Always allow 'exit' command

The telnet 'exit' command is only available in the execution phase of
OpenOCD. Thus, a telnet session cannot be closed via 'exit' if OpenOCD
is started with 'noinit'. Make the 'exit' command always available.

Change-Id: I14447ecde63e579f1c523d606f048ad29cc84a35
Signed-off-by: Marc Schink <dev@zapb.de>
Reviewed-on: https://review.openocd.org/c/openocd/+/8379
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Tested-by: jenkins
This commit is contained in:
Marc Schink 2024-06-24 16:26:46 +02:00 committed by Tomas Vanek
parent b9224c0c0f
commit efe9022197
1 changed files with 1 additions and 1 deletions

View File

@ -982,7 +982,7 @@ static const struct command_registration telnet_command_handlers[] = {
{ {
.name = "exit", .name = "exit",
.handler = handle_exit_command, .handler = handle_exit_command,
.mode = COMMAND_EXEC, .mode = COMMAND_ANY,
.usage = "", .usage = "",
.help = "exit telnet session", .help = "exit telnet session",
}, },