This commit is contained in:
233boy
2018-04-01 10:57:22 +08:00
parent 63cb713408
commit fa9fd183fe
2 changed files with 7 additions and 7 deletions

View File

@@ -78,7 +78,7 @@ v2ray_config() {
# clear
echo
while :; do
echo -e "请选择 "$yellow"V2Ray"$none" 传输协议 [${magenta}1-15$none]"
echo -e "请选择 "$yellow"V2Ray"$none" 传输协议 [${magenta}1-${#transport[*]}$none]"
echo
for ((i = 1; i <= ${#transport[*]}; i++)); do
Stream="${transport[$i - 1]}"
@@ -567,7 +567,7 @@ shadowsocks_password_config() {
shadowsocks_ciphers_config() {
while :; do
echo -e "请选择 "$yellow"Shadowsocks"$none" 加密协议 [${magenta}1-8$none]"
echo -e "请选择 "$yellow"Shadowsocks"$none" 加密协议 [${magenta}1-${#ciphers[*]}$none]"
for ((i = 1; i <= ${#ciphers[*]}; i++)); do
ciphers_show="${ciphers[$i - 1]}"
echo
@@ -666,7 +666,7 @@ domain_check() {
# $cmd install dnsutils -y
# fi
# test_domain=$(dig $domain +short)
test_domain=$(ping $domain -c 1 | grep -oP -m1 "([\d.]+){4}\d")
test_domain=$(ping $domain -c 1 | grep -oP -m1 "(\d+\.){3}\d+")
if [[ $test_domain != $ip ]]; then
echo
echo -e "$red 检测域名解析错误....$none"