소스 검색

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前端"
   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 skyBlue "Trojan Panel 安装成功"