From 07be762bf7d001de4158ba4ee9e9d01b3324a657 Mon Sep 17 00:00:00 2001 From: mvscode <37238560+mvscode@users.noreply.github.com> Date: Wed, 26 Jun 2024 12:07:13 +0800 Subject: [PATCH] Add files via upload --- install-frps.sh | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/install-frps.sh b/install-frps.sh index 84c7a91..9a8ebc9 100644 --- a/install-frps.sh +++ b/install-frps.sh @@ -496,15 +496,15 @@ else [ -n "${input_number}" ] && set_max_pool_count="${input_number}" echo -e "${program_name} max_pool_count: ${COLOR_YELOW}${set_max_pool_count}${COLOR_END}" echo -e "" - echo -e "Please select ${COLOR_GREEN}log_level${COLOR_END}" - echo "1: info (default)" - echo "2: warn" - echo "3: error" - echo "4: debug" - echo "5: trace" - echo "-------------------------" - read -e -p "Enter your choice (1, 2, 3, 4, 5 or exit. default [1]): " str_log_level - case "${str_log_level}" in + echo -e "Please select ${COLOR_GREEN}log_level${COLOR_END}" + echo "1: info (default)" + echo "2: warn" + echo "3: error" + echo "4: debug" + echo "5: trace" + echo "-------------------------" + read -e -p "Enter your choice (1, 2, 3, 4, 5 or exit. default [1]): " str_log_level + case "${str_log_level}" in 1|[Ii][Nn][Ff][Oo]) str_log_level="info" ;; @@ -631,11 +631,11 @@ else echo -e "tcp mux : ${COLOR_GREEN}${set_tcp_mux}${COLOR_END}" echo -e "Max Pool count : ${COLOR_GREEN}${set_max_pool_count}${COLOR_END}" echo -e "Log level : ${COLOR_GREEN}${str_log_level}${COLOR_END}" - echo -e "Log max days : ${COLOR_GREEN}${set_log_max_days}${COLOR_END}" - echo -e "Log file : ${COLOR_GREEN}${str_log_file_flag}${COLOR_END}" - echo -e "transport protocol : ${COLOR_GREEN}${set_transport_protocol}${COLOR_END}" - echo -e "kcp bind port : ${COLOR_GREEN}${set_kcp_bind_port}${COLOR_END}" - echo -e "quic bind port : ${COLOR_GREEN}${set_quic_bind_port}${COLOR_END}" + echo -e "Log max days : ${COLOR_GREEN}${set_log_max_days}${COLOR_END}" + echo -e "Log file : ${COLOR_GREEN}${str_log_file_flag}${COLOR_END}" + echo -e "transport protocol : ${COLOR_GREEN}${set_transport_protocol}${COLOR_END}" + echo -e "kcp bind port : ${COLOR_GREEN}${set_kcp_bind_port}${COLOR_END}" + echo -e "quic bind port : ${COLOR_GREEN}${set_quic_bind_port}${COLOR_END}" echo "==============================================" echo "" echo "Press any key to start...or Press Ctrl+c to cancel" @@ -866,12 +866,12 @@ fi echo -e "Log level : ${COLOR_GREEN}${str_log_level}${COLOR_END}" echo -e "Log max days : ${COLOR_GREEN}${set_log_max_days}${COLOR_END}" echo -e "Log file : ${COLOR_GREEN}${str_log_file_flag}${COLOR_END}" - echo -e "transport protocol : ${COLOR_GREEN}${set_transport_protocol}${COLOR_END}" - echo -e "kcp bind port : ${COLOR_GREEN}${set_kcp_bind_port}${COLOR_END}" - echo -e "quic bind port : ${COLOR_GREEN}${set_quic_bind_port}${COLOR_END}" + echo -e "transport protocol : ${COLOR_GREEN}${set_transport_protocol}${COLOR_END}" + echo -e "kcp bind port : ${COLOR_GREEN}${set_kcp_bind_port}${COLOR_END}" + echo -e "quic bind port : ${COLOR_GREEN}${set_quic_bind_port}${COLOR_END}" echo "================================================" echo -e "${program_name} Dashboard : ${COLOR_GREEN}http://${set_subdomain_host}:${set_dashboard_port}/${COLOR_END}" - echo -e "Dashboard port : ${COLOR_GREEN}${set_dashboard_port}${COLOR_END}" + echo -e "Dashboard port : ${COLOR_GREEN}${set_dashboard_port}${COLOR_END}" echo -e "Dashboard user : ${COLOR_GREEN}${set_dashboard_user}${COLOR_END}" echo -e "Dashboard password : ${COLOR_GREEN}${set_dashboard_pwd}${COLOR_END}" echo "================================================"