From 753d4b8ea935cd94a37a73bf953348de785e38da Mon Sep 17 00:00:00 2001 From: JackyTang Date: Thu, 13 Feb 2020 18:00:57 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9.net=E5=9F=9F=E5=90=8D?= =?UTF-8?q?=E6=97=B6=E5=9C=A8=E5=AE=89=E8=A3=85=E5=AE=8C=E6=88=90=E5=90=8E?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=BF=A1=E6=81=AF=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 906548a..7ea0a01 100644 --- a/install.sh +++ b/install.sh @@ -587,14 +587,14 @@ info_extraction(){ basic_information(){ echo -e "${OK} ${Green} V2ray+ws+tls 安装成功" > ${v2ray_info_file} echo -e "${Red} V2ray 配置信息 ${Font}" >> ${v2ray_info_file} - echo -e "${Red} 地址(address):${Font} $(info_extraction "add") " >> ${v2ray_info_file} - echo -e "${Red} 端口(port):${Font} $(info_extraction "port") " >> ${v2ray_info_file} + echo -e "${Red} 地址(address):${Font} $(info_extraction '\"add\"') " >> ${v2ray_info_file} + echo -e "${Red} 端口(port):${Font} $(info_extraction '\"port\"') " >> ${v2ray_info_file} echo -e "${Red} 用户id(UUID):${Font} $(info_extraction '\"id\"')" >> ${v2ray_info_file} - echo -e "${Red} 额外id(alterId):${Font} $(info_extraction "aid")" >> ${v2ray_info_file} + echo -e "${Red} 额外id(alterId):${Font} $(info_extraction '\"aid\"')" >> ${v2ray_info_file} echo -e "${Red} 加密方式(security):${Font} 自适应 " >> ${v2ray_info_file} - echo -e "${Red} 传输协议(network):${Font} $(info_extraction "net") " >> ${v2ray_info_file} + echo -e "${Red} 传输协议(network):${Font} $(info_extraction '\"net\"') " >> ${v2ray_info_file} echo -e "${Red} 伪装类型(type):${Font} none " >> ${v2ray_info_file} - echo -e "${Red} 路径(不要落下/):${Font} $(info_extraction "path") " >> ${v2ray_info_file} + echo -e "${Red} 路径(不要落下/):${Font} $(info_extraction '\"path\"') " >> ${v2ray_info_file} echo -e "${Red} 底层传输安全:${Font} tls " >> ${v2ray_info_file} } show_information(){ From 551e40039e364498f2b36114de4da9238be1b448 Mon Sep 17 00:00:00 2001 From: JackyTang Date: Fri, 14 Feb 2020 07:30:50 +0800 Subject: [PATCH 2/2] =?UTF-8?q?1.=E5=85=B3=E9=97=ADdebug=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?,=E5=87=8F=E5=B0=8F=E7=BC=96=E8=AF=91=E5=90=8E=E7=9A=84?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=A7=E5=B0=8F=202.=E4=BC=98=E5=8C=96GCC?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.sh b/install.sh index 7ea0a01..168e7c4 100644 --- a/install.sh +++ b/install.sh @@ -319,6 +319,9 @@ nginx_install(){ echo -e "${OK} ${GreenBG} 即将开始编译安装 Nginx, 过程稍久,请耐心等待 ${Font}" sleep 4 + # 关闭debug模式,减小编译后的文件大小 + sed -i 's@CFLAGS="$CFLAGS -g"@#CFLAGS="$CFLAGS -g"@' auto/cc/gcc + cd nginx-${nginx_version} ./configure --prefix="${nginx_dir}" \ --with-http_ssl_module \ @@ -330,6 +333,7 @@ nginx_install(){ --with-http_mp4_module \ --with-http_secure_link_module \ --with-http_v2_module \ + --with-cc-opt='-O3' \ --with-openssl=../openssl-"$openssl_version" judge "编译检查" make && make install