forked from auracaster/openocd
telnet/auto-complete: hide deprecated and internal commands
For both: - TCL proc that redirect deprecated commands to the new commands, - TCL proc used internally and not supposed to be exposed to user, add their name to the list of commands that should be hide by the telnet auto-complete. Change-Id: I05237c6a79334b7d2b151dfb129fb57b2f40bba6 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/6195 Tested-by: jenkins Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
This commit is contained in:
@@ -9,6 +9,9 @@ proc ocd_gdb_restart {target_id} {
|
||||
reset halt
|
||||
}
|
||||
|
||||
lappend _telnet_autocomplete_skip prevent_cps
|
||||
lappend _telnet_autocomplete_skip POST
|
||||
lappend _telnet_autocomplete_skip Host:
|
||||
proc prevent_cps {} {
|
||||
echo "Possible SECURITY ATTACK detected."
|
||||
echo "It looks like somebody is sending POST or Host: commands to OpenOCD."
|
||||
|
||||
Reference in New Issue
Block a user