From 53d671d28ac7b27a0e321e2269d53612fb87720a Mon Sep 17 00:00:00 2001 From: livejq Date: Mon, 15 May 2023 10:59:26 +0800 Subject: [PATCH] fix bug x4. --- chntunnel/chntunnel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chntunnel/chntunnel.sh b/chntunnel/chntunnel.sh index 68804a8..0585059 100644 --- a/chntunnel/chntunnel.sh +++ b/chntunnel/chntunnel.sh @@ -190,7 +190,7 @@ if [ $# != 0 ]; then peer=$(ip addr | grep peer | grep inet | awk -F ' ' {'print $4'}) PEER_INNER_IPADDR=${peer%%/*} :>/etc/sysconfig/static-routes - grep $local_table /etc/iproute2/rt_tables && result=$? + grep $local_table /etc/iproute2/rt_tables >/dev/null && result=$? [[ $result != '0' ]] && echo "200 $local_table" >>/etc/iproute2/rt_tables #grep $local_table /etc/rc.local && result=$? #[[ $result != '0' ]] && addRoutes $local_table $local_gw $local_dev $local_addr && chmod +x /etc/rc.local && /etc/rc.local