Explorar o código

Update wgmtu.sh

蘭雅sRGB %!s(int64=6) %!d(string=hai) anos
pai
achega
cca26dd66e
Modificáronse 1 ficheiros con 7 adicións e 3 borrados
  1. 7 3
      Wireguard/wgmtu.sh

+ 7 - 3
Wireguard/wgmtu.sh

@@ -1,8 +1,12 @@
 #!/bin/bash
 #!/bin/bash
 
 
-echo -e "WireGuard 修复MTU过低,导致网速下降,修改WG服务器端MTU值,默认值 MTU = 1420"
-echo -e "WireGuard 客户端可以MTU参数自动,请把客户段的MTU行注释掉。"
-read -p "请输入数字(1200--1500): " num
+#定义文字颜色
+Green="\033[32m"  && Red="\033[31m" && GreenBG="\033[42;37m" && RedBG="\033[41;37m" && Font="\033[0m"
+
+
+echo -e "${GreenBG}WireGuard 修改服务器端MTU值,最大效率加大网速,默认值 MTU = 1420 "
+echo -e "WireGuard 客户端可以MTU参数自动,请修改电脑客户端TunSafe配置把MTU行注释掉。${Font}"
+read -p "请输入数字{RedBG}(1200--1500):${Font} " num
 
 
 if [[ ${num} -ge 1200 ]] && [[ ${num} -le 1500 ]]; then
 if [[ ${num} -ge 1200 ]] && [[ ${num} -le 1500 ]]; then
    mtu=$num
    mtu=$num