jonssonyan пре 2 година
родитељ
комит
90aa74841f
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      install_script.sh

+ 2 - 1
install_script.sh

@@ -998,12 +998,13 @@ EOF
   fi
 
   https_flag=$([[ -z ${https_enable} || ${https_enable} == 1 ]] && echo "https" || echo "http")
+  domain_or_ip=$([[ -n ${domain} && "${domian}" == "custom_cert" ]] && echo "${domain}" || echo "ip")
 
   echo_content red "\n=============================================================="
   echo_content skyBlue "Trojan Panel 安装成功"
   echo_content yellow "MariaDB ${mariadb_user}的密码(请妥善保存): ${mariadb_pas}"
   echo_content yellow "Redis的密码(请妥善保存): ${redis_pass}"
-  echo_content yellow "管理面板地址: ${https_flag}://${domain}:${trojan_panel_ui_port}"
+  echo_content yellow "管理面板地址: ${https_flag}://${domain_or_ip}:${trojan_panel_ui_port}"
   echo_content yellow "系统管理员 默认用户名: sysadmin 默认密码: 123456 请及时登陆管理面板修改密码"
   echo_content yellow "Trojan Panel私钥和证书目录: ${CERT_PATH}"
   echo_content red "\n=============================================================="