修复 域名dns解析IP 与 本机IP 不匹配

pull/41/head
wulabing 2018-02-04 13:06:18 +08:00 committed by GitHub
parent b4c1630ecd
commit 932702a2c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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