Răsfoiți Sursa

kcptun镜像下载,auto.sh 一键安装支持 debian 13 和 Ubuntu 22.04 24.04 26.04

蘭雅sRGB 1 săptămână în urmă
părinte
comite
f0368c3c58
2 a modificat fișierele cu 7 adăugiri și 5 ștergeri
  1. 2 5
      Wireguard/wgmtu.sh
  2. 5 0
      auto.sh

+ 2 - 5
Wireguard/wgmtu.sh

@@ -410,11 +410,8 @@ udp2raw_update()
     rm version.txt
 
     # 下载 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
+    kcptun_tar_gz=kcptun-linux-amd64-20230811.tar.gz
+    wget https://raw.githubusercontent.com/hongwenjun/img/master/bin/$kcptun_tar_gz
     tar xf $kcptun_tar_gz
     mv server_linux_amd64 /usr/bin/kcp-server
     rm $kcptun_tar_gz

+ 5 - 0
auto.sh

@@ -352,6 +352,8 @@ if [[ -n "$tmpDIST" ]]; then
         [[ "$isDigital" == '10' ]] && DIST='buster';
         [[ "$isDigital" == '11' ]] && DIST='bullseye';
         [[ "$isDigital" == '12' ]] && DIST='bookworm';
+        [[ "$isDigital" == '13' ]] && DIST='trixie';
+        [[ "$isDigital" == '14' ]] && DIST='forky';
       }
     }
     LinuxMirror=$(selectMirror "$Relese" "$DIST" "$VER" "$tmpMirror")
@@ -368,6 +370,9 @@ if [[ -n "$tmpDIST" ]]; then
         [[ "$isDigital" == '16.04' ]] && DIST='xenial';
         [[ "$isDigital" == '18.04' ]] && DIST='bionic';
         [[ "$isDigital" == '20.04' ]] && DIST='focal';
+        [[ "$isDigital" == '22.04' ]] && DIST='jammy';
+        [[ "$isDigital" == '24.04' ]] && DIST='noble';
+        [[ "$isDigital" == '26.04' ]] && DIST='resolute';
       }
     }
     LinuxMirror=$(selectMirror "$Relese" "$DIST" "$VER" "$tmpMirror")