Merge pull request #62 from huangqian8/master

修复modify_nginx()中的一个小bug。
pull/207/head
wulabing 2019-06-07 19:11:40 +08:00 committed by GitHub
commit 776235bee4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ modify_nginx(){
if [[ -f /etc/nginx/nginx.conf.bak ]];then
cp /etc/nginx/nginx.conf.bak /etc/nginx/nginx.conf
fi
sed -i "1,/listen/{s/listen 443 ssl;/listen ${port} ssl;/}" ${v2ray_conf}
sed -i "1,/listen/{s/listen 443 ssl;/listen ${port} ssl;/}" ${nginx_conf}
sed -i "/server_name/c \\\tserver_name ${domain};" ${nginx_conf}
sed -i "/location/c \\\tlocation \/${camouflage}\/" ${nginx_conf}
sed -i "/proxy_pass/c \\\tproxy_pass http://127.0.0.1:${PORT};" ${nginx_conf}