适配 ipv6 监听的 Nginx port变更

pull/315/head
wulabing 2020-06-03 16:55:47 +08:00
parent 4662f94197
commit bf9a89a164
1 changed files with 1 additions and 0 deletions

View File

@ -279,6 +279,7 @@ modify_nginx_port() {
port="$(info_extraction '\"port\"')"
fi
sed -i "/ssl http2;$/c \\\tlisten ${port} ssl http2;" ${nginx_conf}
sed -i "3c \\\tlisten [::]:${port} http2;" ${nginx_conf}
judge "V2ray port 修改"
[ -f ${v2ray_qr_config_file} ] && sed -i "/\"port\"/c \\ \"port\": \"${port}\"," ${v2ray_qr_config_file}
echo -e "${OK} ${GreenBG} 端口号:${port} ${Font}"