David Brownell <david-b@pacbell.net>:
OpenOCD doesn't actually *need* to be keeping all TCP ports active ... creating security issues in some network configs. Instead, let config file specify e.g. "tcl_port 0" (or gdb_port, telnet_port) to disable that particular remote access method. git-svn-id: svn://svn.berlios.de/openocd/trunk@2240 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
#include "telnet_server.h"
|
||||
#include "target_request.h"
|
||||
|
||||
static unsigned short telnet_port = 0;
|
||||
static unsigned short telnet_port = 4444;
|
||||
|
||||
int handle_exit_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
|
||||
int handle_telnet_port_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
|
||||
@@ -596,8 +596,8 @@ int telnet_init(char *banner)
|
||||
|
||||
if (telnet_port == 0)
|
||||
{
|
||||
LOG_DEBUG("no telnet port specified, using default port 4444");
|
||||
telnet_port = 4444;
|
||||
LOG_INFO("telnet port disabled");
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
telnet_service->banner = banner;
|
||||
|
||||
Reference in New Issue
Block a user