diff --git a/install.sh b/install.sh index 65a983e..e5aa92a 100644 --- a/install.sh +++ b/install.sh @@ -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}"