mirror of https://github.com/wulabing/Xray_onekey
修复自定义端口导致的无法连接
parent
1a1c28d58d
commit
6cba514a55
|
@ -197,7 +197,7 @@ modify_port_UUID(){
|
|||
sed -i "/\"path\"/c \\\t \"path\":\"\/${camouflage}\/\"" ${v2ray_conf}
|
||||
}
|
||||
modify_nginx(){
|
||||
sed -i "1,/listen/{s/listen 443 ssl;/listen ${port} ssl;/}" ${nginx_conf}
|
||||
sed -i "1,/listen/{s/listen 443 ssl http2;/listen ${port} ssl http2;/}" ${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}
|
||||
|
|
Loading…
Reference in New Issue