diff --git a/x-ui.sh b/x-ui.sh index ce1dfea1..5cf41ca7 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -336,16 +336,16 @@ check_config() { echo -e "${yellow}You can get a Let's Encrypt certificate for your IP address (valid ~6 days, auto-renews).${plain}" read -rp "Generate SSL certificate for IP now? [y/N]: " gen_ssl if [[ "$gen_ssl" == "y" || "$gen_ssl" == "Y" ]]; then - stop > /dev/null 2>&1 + stop 0 > /dev/null 2>&1 ssl_cert_issue_for_ip if [[ $? -eq 0 ]]; then echo -e "${green}Access URL: https://${server_ip}:${existing_port}${existing_webBasePath}${plain}" # ssl_cert_issue_for_ip already restarts the panel, but ensure it's running - start > /dev/null 2>&1 + start 0 > /dev/null 2>&1 else LOGE "IP certificate setup failed." echo -e "${yellow}You can try again via option 19 (SSL Certificate Management).${plain}" - start > /dev/null 2>&1 + start 0 > /dev/null 2>&1 fi else echo -e "${yellow}Access URL: http://${server_ip}:${existing_port}${existing_webBasePath}${plain}"