From 17c8fc89e099b67fe4262e650f974888efddd60e Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Thu, 31 Oct 2024 01:30:18 +0100 Subject: [PATCH] fix --- x-ui.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x-ui.sh b/x-ui.sh index 77408607..e6d262f4 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -1443,14 +1443,14 @@ SSH_port_forwarding() { local existing_webBasePath=$(/usr/local/x-ui/x-ui setting -show true | grep -Eo 'webBasePath: .+' | awk '{print $2}') local existing_port=$(/usr/local/x-ui/x-ui setting -show true | grep -Eo 'port: .+' | awk '{print $2}') local existing_listenIP=$(/usr/local/x-ui/x-ui setting -getListen true | grep -Eo 'listenIP: .+' | awk '{print $2}') - local existing_cert=$(/usr/local/x-ui/x-ui cert -getCert true | grep -Eo 'cert: .+' | awk '{print $2}') - local existing_key=$(/usr/local/x-ui/x-ui cert -getCert true | grep -Eo 'key: .+' | awk '{print $2}') + local existing_cert=$(/usr/local/x-ui/x-ui setting -getCert true | grep -Eo 'cert: .+' | awk '{print $2}') + local existing_key=$(/usr/local/x-ui/x-ui setting -getCert true | grep -Eo 'key: .+' | awk '{print $2}') local config_listenIP="" local listen_choice="" if [[ -n "$existing_cert" && -n "$existing_key" ]]; then - echo "Panel is secure with SSL." + echo -e "${green}Panel is secure with SSL.${plain}" return 0 fi if [[ -z "$existing_cert" && -z "$existing_key" && -z "$existing_listenIP" ]]; then