1
0
Эх сурвалжийг харах

下载更新KCPTUN最新版方法

hongwenjun 6 жил өмнө
parent
commit
57f5b59da3
3 өөрчлөгдсөн 17 нэмэгдсэн , 10 устгасан
  1. 7 3
      README.md
  2. 6 3
      Wireguard/wgmtu.sh
  3. 4 4
      v2ray/README.md

+ 7 - 3
README.md

@@ -22,7 +22,7 @@
 - 此项目仅限于技术交流和探讨,在您测试完毕后必须在1秒钟内彻底删除项目副本。此项目为bash一键脚本,其中涉及到的任何软件版权和责任归原作者所有。
 - 在中国境内使用、传播、售卖、免费分享等任何翻墙服务,都是违法的。如果你在中国境内使用、测试此项目脚本,或者使用此脚本搭建服务器发生以上违法行为,都有违作者意愿!你必须立刻停止此行为!并删除脚本!
 
-### [OpenWRT 安装 WireGuard 配置 Udp2Raw + UdpSpeeder + WireGuard](https://github.com/hongwenjun/vps_setup/blob/master/openwrt-18.06.2/README.md)
+### [OpenWRT安装WireGuard 配置 Udp2Raw+UdpSpeeder+WireGuard](https://github.com/hongwenjun/vps_setup/blob/master/openwrt-18.06.2/README.md)
 ![](https://raw.githubusercontent.com/hongwenjun/vps_setup/master/openwrt-18.06.2/openwrt_udptools.png)
 
 ### V2Ray 和 Shadowsocks 配置显示二维码  短网址: https://git.io/v2ray.ss
@@ -41,7 +41,11 @@ ss-server -s 0.0.0.0 -p 40000 -k ${PASSWORD} -m aes-256-gcm -t 300 >> /var/log/s
 ```
 cat /etc/v2ray/config.json
 ```
----
+
+### V2RAY基于NGINX的[VMESS+WS+TLS+Website](https://git.io/v2ray.nginx)手工配置原理
+- 短网址: https://git.io/v2ray.nginx
+
+----
 
 ### 一键安装wireguard 参考演示视频集合
 
@@ -139,7 +143,7 @@ tar -czv -T filelist -f ss_frp.tar.gz
 -T 选项可以指定包含要备份的文件列表
 ```
 
-## 搬迁备份文件,使用wget
+### 搬迁备份文件,使用wget
 - 可以先不删除原来机器,新建立机器使用wget把备份文件挪过去
 - 本笔记,由于使用Vultr_IPV6的机器,所以使用wget先下载到本地电脑了
 

+ 6 - 3
Wireguard/wgmtu.sh

@@ -272,9 +272,12 @@ udp2raw_update()
     rm udp2raw* -rf
     rm version.txt
 
-    # 下载 KCPTUN
-    kcptun_tar_gz=kcptun-linux-amd64-20190418.tar.gz
-    wget https://github.com/xtaci/kcptun/releases/download/v20190418/$kcptun_tar_gz
+    # 下载更新 KCPTUN
+    kcp_ver=$(wget --no-check-certificate -qO- https://api.github.com/repos/xtaci/kcptun/releases/latest | grep 'tag_name' | cut -d\" -f4)
+    kcp_gz_ver=${kcp_ver:1:8}
+
+    kcptun_tar_gz=kcptun-linux-amd64-${kcp_gz_ver}.tar.gz
+    wget https://github.com/xtaci/kcptun/releases/download/${kcp_ver}/$kcptun_tar_gz
     tar xf $kcptun_tar_gz
     mv server_linux_amd64 /usr/bin/kcp-server
     rm $kcptun_tar_gz

+ 4 - 4
v2ray/README.md

@@ -6,6 +6,9 @@
 bash <(curl -L -s https://install.direct/go.sh)
 ```
 
+- V2RAY 基于 NGINX 的 VMESS+WS+TLS+Website 手工配置原理
+- 短网址: https://git.io/v2ray.nginx
+
 ### 显示官方服务端默认配置(TCP协议vmess)
 ```
 cat /etc/v2ray/config.json
@@ -117,11 +120,8 @@ vmess://ew0KICAidiI6ICIyIiwNCiAgInBzIjogIlYyUmF5IiwNCiAgImFkZCI6ICIxODguMTg4LjE4
 ![](https://raw.githubusercontent.com/hongwenjun/vps_setup/master/v2ray/v2ray_set.gif)
 
 ### 下载v2ray for Windows 客户端地址如果被墙,可以先用vps下载
-### 借用vps中转,开临时网页服务器 访问 http://1.2.3.4:8000  (1.2.3.4实际vps的ip)
+- 借用vps中转,开临时网页服务器 访问 http://1.2.3.4:8000  (1.2.3.4实际vps的ip)
 ```
 wget https://github.com/2dust/v2rayN/releases/download/2.22/v2rayN-Core.zip
 python -m SimpleHTTPServer 8000
 ```
-
-### V2RAY 基于 NGINX 的 VMESS+WS+TLS+Website 手工配置原理
-- 短网址: https://git.io/v2ray.nginx