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`