其实…所有版本均有挖矿代码,很惭愧,就做了一点微小的工作

This commit is contained in:
233boy
2018-03-14 14:55:23 +08:00
parent f2b1562280
commit b11e63b180
2 changed files with 15 additions and 11 deletions

View File

@@ -660,19 +660,21 @@ install_info() {
}
domain_check() {
if [[ $cmd == "yum" ]]; then
yum install bind-utils -y
else
$cmd install dnsutils -y
fi
test_domain=$(dig $domain +short)
# test_domain=$(ping $domain -c 1 | grep -oP -m1 "([\d.]+){3}\d")
# if [[ $cmd == "yum" ]]; then
# yum install bind-utils -y
# else
# $cmd install dnsutils -y
# fi
# test_domain=$(dig $domain +short)
test_domain=$(ping $domain -c 1 | grep -oP -m1 "([\d.]+){3}\d")
if [[ $test_domain != $ip ]]; then
echo
echo -e "$red 检测域名解析错误....$none"
echo
echo -e " 你的域名: $yellow$domain$none 未解析到: $cyan$ip$none"
echo
echo -e " 你的域名当前解析到: $cyan$test_domain$none"
echo
echo "备注...如果你的域名是使用 Cloudflare 解析的话..在 Status 那里点一下那图标..让它变灰"
echo
exit 1