Explorar o código

Update wg5clients.sh

蘭雅sRGB %!s(int64=6) %!d(string=hai) anos
pai
achega
2a3235bda7
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      Wireguard/wg5clients.sh

+ 4 - 0
Wireguard/wg5clients.sh

@@ -139,6 +139,7 @@ cat /etc/wireguard/wg_${host}_4.conf   && next
 
 echo -e "# ${Info} wg 查看有效的客户端;删除客户端使用  wg set wg0 peer xxxx_填对应IP的公钥_xxxx remove"
 echo -e "# ${Info} 使用${GreenBG} bash wg5 ${Font} 命令,可以临时网页下载配置和二维码"
+echo -e "# ${Info} 使用${GreenBG} bash wgmtu ${Font} 命令,设置服务器端MTU数值"
 
 # echo -e "# ${Info} 请网页打开 ${GreenBG}${conf_url}${Font} 下载配置文件 wg5clients.tar ,${RedBG}注意: 完成后请重启VPS.${Font}"
 # echo -e "#  scp [email protected]:/etc/wireguard/wg5clients.tar   wg5clients.tar"
@@ -148,5 +149,8 @@ echo ""
 
 EOF
 bash  ~/wg5
+
+# 用户选择下载配置和修改mtu
 sed -i "s/# python -m/python -m/g"  ~/wg5
 sed -i "s/# echo -e/echo -e/g"  ~/wg5
+wget -O wgmtu https://raw.githubusercontent.com/hongwenjun/vps_setup/master/Wireguard/wgmtu.sh