浏览代码

fix: https enable

jonssonyan 3 年之前
父节点
当前提交
c5d4481e78
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      install_script.sh

+ 1 - 1
install_script.sh

@@ -609,7 +609,7 @@ EOF
     echo_content skyBlue "---> 你已经安装了Trojan Panel前端"
     echo_content skyBlue "---> 你已经安装了Trojan Panel前端"
   fi
   fi
 
 
-  https_flag=$([[ "${https_enable}" == "1" ]] && echo "https" || echo "http")
+  https_flag=$([[ -z ${https_enable} || ${https_enable} == 1 ]] && echo "https" || echo "http")
 
 
   echo_content red "\n=============================================================="
   echo_content red "\n=============================================================="
   echo_content skyBlue "Trojan Panel 安装成功"
   echo_content skyBlue "Trojan Panel 安装成功"