From 932702a2c8098bc17ff77c2cda83382c85e713aa Mon Sep 17 00:00:00 2001 From: wulabing Date: Sun, 4 Feb 2018 13:06:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=9F=9F=E5=90=8Ddns?= =?UTF-8?q?=E8=A7=A3=E6=9E=90IP=20=E4=B8=8E=20=E6=9C=AC=E6=9C=BAIP=20?= =?UTF-8?q?=E4=B8=8D=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 8d503df..07fe5c4 100644 --- a/install.sh +++ b/install.sh @@ -221,7 +221,7 @@ domain_check(){ ## [[ -z ${broadcast} ]] && broadcast="eth0" domain_ip=`ping ${domain} -c 1 | sed '1{s/[^(]*(//;s/).*//;q}'` ##local_ip=`ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6 | awk '{print $2}' | tr -d "addr:"` - local_ip=`curl ip.sb` + local_ip=`curl ifconfig.me` echo -e "域名dns解析IP:${domain_ip}" echo -e "本机IP: ${local_ip}" sleep 2