mirror of https://github.com/wulabing/Xray_onekey
适配 ipv6 监听的 Nginx port变更
parent
4662f94197
commit
bf9a89a164
|
@ -279,6 +279,7 @@ modify_nginx_port() {
|
||||||
port="$(info_extraction '\"port\"')"
|
port="$(info_extraction '\"port\"')"
|
||||||
fi
|
fi
|
||||||
sed -i "/ssl http2;$/c \\\tlisten ${port} ssl http2;" ${nginx_conf}
|
sed -i "/ssl http2;$/c \\\tlisten ${port} ssl http2;" ${nginx_conf}
|
||||||
|
sed -i "3c \\\tlisten [::]:${port} http2;" ${nginx_conf}
|
||||||
judge "V2ray port 修改"
|
judge "V2ray port 修改"
|
||||||
[ -f ${v2ray_qr_config_file} ] && sed -i "/\"port\"/c \\ \"port\": \"${port}\"," ${v2ray_qr_config_file}
|
[ -f ${v2ray_qr_config_file} ] && sed -i "/\"port\"/c \\ \"port\": \"${port}\"," ${v2ray_qr_config_file}
|
||||||
echo -e "${OK} ${GreenBG} 端口号:${port} ${Font}"
|
echo -e "${OK} ${GreenBG} 端口号:${port} ${Font}"
|
||||||
|
|
Loading…
Reference in New Issue