From 2e7b67057d8ed7d01f4f51e3af8a1f338699f832 Mon Sep 17 00:00:00 2001 From: hitsword Date: Wed, 4 Mar 2020 22:02:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=98=E9=87=8F=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hitsword --- udptools.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/udptools.sh b/udptools.sh index 69a3d90..087409e 100644 --- a/udptools.sh +++ b/udptools.sh @@ -13,16 +13,16 @@ if [[ -e /etc/debian_version ]]; then RCLOCAL='/etc/rc.d/rc.local' IPTABLES=`rpm -qa |grep iptables` else - echo "只支持Debian\Ubuntu\CentOS系统" - exit + echo "只支持Debian\Ubuntu\CentOS系统" + exit fi #检查依赖IPTABLES if [ "$IPTABLES" == '' ]; then if [[ "$OS" = 'debian' ]]; then - apt-get update - apt-get install iptables -y + apt-get update + apt-get install iptables -y else - yum install iptables -y + yum install iptables -y fi fi @@ -36,9 +36,9 @@ fi testFun() { echo $PASSWD - echo $IP - echo $RPORT - echo $MPORT + echo $REMOTEIP + echo $RPORT + echo $MPORT echo $LPORT } @@ -52,7 +52,7 @@ case $RUNMODE in 1) read -p "Udp2Raw Password(Udp2Raw密码): " PASSWD echo"" - read -p "Remote Udp2Raw IP(Udp2Raw远程IP): " RIP + read -p "Remote Udp2Raw IP(Udp2Raw远程IP): " REMOTEIP echo"" while [[ ! "$RPORT" =~ [1-65535] ]];do read -p "Remote Udp2Raw Port(Udp2Raw远程端口): " RPORT