From 766b7c3a604787604e5e4d671ff0033b9046cce9 Mon Sep 17 00:00:00 2001 From: CN_SZTL Date: Wed, 4 Mar 2020 12:18:15 +0800 Subject: [PATCH] luci-app-serverchan: sync with upstream source --- .../luci-app-serverchan/root/usr/bin/serverchan/serverchan | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/ctcgfw/luci-app-serverchan/root/usr/bin/serverchan/serverchan b/package/ctcgfw/luci-app-serverchan/root/usr/bin/serverchan/serverchan index ec942af533..743a5f95e2 100755 --- a/package/ctcgfw/luci-app-serverchan/root/usr/bin/serverchan/serverchan +++ b/package/ctcgfw/luci-app-serverchan/root/usr/bin/serverchan/serverchan @@ -445,7 +445,8 @@ function up(){ if [ ! -f "${dir}ipAddress" ] ; then > ${dir}ipAddress;fi if [ "$1" ] ;then # 如果 ipAddress 文件中存在此ip,则跳过,待断线检测 - if ( ! echo ${dir}ipAddress | grep -q -w $1 ) ; then + local ip=`cat ${dir}ipAddress | grep -w $1` + if [ -z "$ip" ] ; then local ip_mac=`getmac $1` local ip_name=`getname $1 $ip_mac`