Update install.sh

pull/41/head
wulabing 2018-02-04 17:59:05 +08:00 committed by GitHub
parent 932702a2c8
commit 3fee210dc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -221,6 +221,8 @@ domain_check(){
## [[ -z ${broadcast} ]] && broadcast="eth0" ## [[ -z ${broadcast} ]] && broadcast="eth0"
domain_ip=`ping ${domain} -c 1 | sed '1{s/[^(]*(//;s/).*//;q}'` 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=`ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6 | awk '{print $2}' | tr -d "addr:"`
##local_ip=`curl ip.sb`
echo -e "${OK} ${GreenBG} 正在获取 公网ip 信息,请耐心等待 ${Font}"
local_ip=`curl ifconfig.me` local_ip=`curl ifconfig.me`
echo -e "域名dns解析IP${domain_ip}" echo -e "域名dns解析IP${domain_ip}"
echo -e "本机IP: ${local_ip}" echo -e "本机IP: ${local_ip}"