[modify] ip.sb 接口调用调整

修复 无法正常获取主机公网 IP 的问题
pull/290/head
wulabing 2020-08-09 09:47:11 +08:00
parent a0e8279457
commit 3e6cd5c518
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ OK="${Green}[OK]${Font}"
Error="${Red}[错误]${Font}"
# 版本
shell_version="1.1.5.0"
shell_version="1.1.5.1"
shell_mode="None"
github_branch="master"
version_cmp="/tmp/version_cmp.tmp"
@ -425,7 +425,7 @@ domain_check() {
read -rp "请输入你的域名信息(eg:www.wulabing.com):" domain
domain_ip=$(ping "${domain}" -c 1 | sed '1{s/[^(]*(//;s/).*//;q}')
echo -e "${OK} ${GreenBG} 正在获取 公网ip 信息,请耐心等待 ${Font}"
local_ip=$(curl -4 ip.sb)
local_ip=$(curl https://api-ipv4.ip.sb/ip)
echo -e "域名dns解析IP${domain_ip}"
echo -e "本机IP: ${local_ip}"
sleep 2