From 8dc7573413c1bda00b96ebb59c7e13a2ac584b11 Mon Sep 17 00:00:00 2001 From: liupeng298 Date: Wed, 31 Jul 2024 12:25:48 +0000 Subject: [PATCH] update src/host/translate.cpp. Signed-off-by: liupeng298 --- src/host/translate.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/host/translate.cpp b/src/host/translate.cpp index 4b3861f7..21d01a90 100755 --- a/src/host/translate.cpp +++ b/src/host/translate.cpp @@ -230,7 +230,8 @@ namespace TranslateCommand { const char *pExtra = input + 6; // CMDSTR_FORWARD_FPORT CMDSTR_FORWARD_RPORT + " " size if (!strncmp(input, CMDSTR_FORWARD_FPORT.c_str(), CMDSTR_FORWARD_FPORT.size()) && !strcmp(pExtra, "ls")) { outCmd->cmdFlag = CMD_FORWARD_LIST; - } else if (!strncmp(input, CMDSTR_FORWARD_FPORT.c_str(), CMDSTR_FORWARD_FPORT.size()) && !strncmp(pExtra, "rm", 2)) { // 2: "rm" size + } else if (!strncmp(input, CMDSTR_FORWARD_FPORT.c_str(), CMDSTR_FORWARD_FPORT.size()) && + !strncmp(pExtra, "rm", 2)) { // 2: "rm" size outCmd->cmdFlag = CMD_FORWARD_REMOVE; if (strcmp(pExtra, "rm")) { outCmd->parameters = input + FORWORD_PORT_RM_BUF_SIZE;