Update CLI prompt after switching connection type

This commit is contained in:
wh201906 committed 2023-12-27 22:21:50 +08:00
1 parent abdaf57cd9
commit 3aab9a4d04
3 files changed
+4

No files matched your search

+2
View File
@@ -281,6 +281,8 @@ main_loop(char *script_cmds_file, char *script_cmd, bool stayInCommandLoop) {
prompt_net = PROXPROMPT_NET_UDPV6;
break;
case PM3_NONE:
prompt_net = PROXPROMPT_NET_NONE;
break;
default:
break;
}
+1
View File
@@ -39,6 +39,7 @@
#define PROXPROMPT_NET_UDPV4 "|" _RL_BOLD_GREEN_("udp")
#define PROXPROMPT_NET_TCPV6 "|" _RL_BOLD_GREEN_("tcp v6")
#define PROXPROMPT_NET_UDPV6 "|" _RL_BOLD_GREEN_("udp v6")
#define PROXPROMPT_NET_NONE ""
#define PROXHISTORY "history.txt"