|
|
@ -666,7 +666,7 @@ domain_check() { |
|
|
|
# $cmd install dnsutils -y |
|
|
|
# $cmd install dnsutils -y |
|
|
|
# fi |
|
|
|
# fi |
|
|
|
# test_domain=$(dig $domain +short) |
|
|
|
# test_domain=$(dig $domain +short) |
|
|
|
test_domain=$(ping $domain -c 1 | grep -oP -m1 "([\d.]+){3}\d") |
|
|
|
test_domain=$(ping $domain -c 1 | grep -oP -m1 "([\d.]+){4}\d") |
|
|
|
if [[ $test_domain != $ip ]]; then |
|
|
|
if [[ $test_domain != $ip ]]; then |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo -e "$red 检测域名解析错误....$none" |
|
|
|
echo -e "$red 检测域名解析错误....$none" |
|
|
@ -755,10 +755,15 @@ $domain { |
|
|
|
|
|
|
|
|
|
|
|
install_v2ray() { |
|
|
|
install_v2ray() { |
|
|
|
$cmd update -y |
|
|
|
$cmd update -y |
|
|
|
|
|
|
|
# if [[ $cmd == "apt-get" ]]; then |
|
|
|
|
|
|
|
# $cmd install -y lrzsz git zip unzip curl wget qrencode dnsutils |
|
|
|
|
|
|
|
# else |
|
|
|
|
|
|
|
# $cmd install -y lrzsz git zip unzip curl wget qrencode bind-utils iptables-services |
|
|
|
|
|
|
|
# fi |
|
|
|
if [[ $cmd == "apt-get" ]]; then |
|
|
|
if [[ $cmd == "apt-get" ]]; then |
|
|
|
$cmd install -y lrzsz git zip unzip curl wget qrencode dnsutils |
|
|
|
$cmd install -y lrzsz git zip unzip curl wget qrencode |
|
|
|
else |
|
|
|
else |
|
|
|
$cmd install -y lrzsz git zip unzip curl wget qrencode bind-utils iptables-services |
|
|
|
$cmd install -y lrzsz git zip unzip curl wget qrencode iptables-services |
|
|
|
fi |
|
|
|
fi |
|
|
|
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime |
|
|
|
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime |
|
|
|
|
|
|
|
|
|
|
|