mirror of https://github.com/wulabing/Xray_onekey
Update install.sh
parent
932702a2c8
commit
3fee210dc4
|
@ -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}"
|
||||||
|
|
Loading…
Reference in New Issue