允许选择是否配置伪装网页

pull/418/head
玖柒Max 2022-07-09 15:54:17 +08:00
parent 403d157012
commit d168ff2a67
No known key found for this signature in database
GPG Key ID: 844B7F4315883625
1 changed files with 12 additions and 7 deletions

View File

@ -27,7 +27,7 @@ OK="${Green}[OK]${Font}"
ERROR="${Red}[ERROR]${Font}"
# 变量
shell_version="1.3.10"
shell_version="1.3.11"
github_branch="main"
xray_conf_dir="/usr/local/etc/xray"
website_dir="/www/xray_web/"
@ -498,12 +498,17 @@ function generate_certificate() {
function configure_web() {
rm -rf /www/xray_web
mkdir -p /www/xray_web
# 不在进行页面伪装 访问首页默认403 Forbidden
# wget -O web.tar.gz https://raw.githubusercontent.com/wulabing/Xray_onekey/main/basic/web.tar.gz
# tar xzf web.tar.gz -C /www/xray_web
# judge "站点伪装"
# rm -f web.tar.gz
prink_ok "是否配置伪装网页?[Y/N]"
read -r webpage
case $webpage in
[yY][eE][sS] | [yY])
wget -O web.tar.gz https://raw.githubusercontent.com/wulabing/Xray_onekey/main/basic/web.tar.gz
tar xzf web.tar.gz -C /www/xray_web
judge "站点伪装"
rm -f web.tar.gz
;;
*) ;;
esac
}
function xray_uninstall() {