|
|
|
@ -10,7 +10,7 @@ none='\e[0m' |
|
|
|
|
# Root |
|
|
|
|
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1 |
|
|
|
|
|
|
|
|
|
_version="v1.55" |
|
|
|
|
_version="v1.56" |
|
|
|
|
|
|
|
|
|
cmd="apt-get" |
|
|
|
|
|
|
|
|
@ -680,7 +680,7 @@ change_shadowsocks_password() { |
|
|
|
|
change_shadowsocks_ciphers() { |
|
|
|
|
echo |
|
|
|
|
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 |
|
|
|
@ -923,7 +923,7 @@ change_v2ray_transport_ask() { |
|
|
|
|
change_v2ray_transport() { |
|
|
|
|
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]}" |
|
|
|
@ -1838,7 +1838,7 @@ change_proxy_site_config() { |
|
|
|
|
} |
|
|
|
|
domain_check() { |
|
|
|
|
# test_domain=$(dig $new_domain +short) |
|
|
|
|
test_domain=$(ping $new_domain -c 1 | grep -oP -m1 "([\d.]+){4}\d") |
|
|
|
|
test_domain=$(ping $new_domain -c 1 | grep -oP -m1 "(\d+\.){3}\d+") |
|
|
|
|
if [[ $test_domain != $ip ]]; then |
|
|
|
|
echo |
|
|
|
|
echo -e "$red 检测域名解析错误....$none" |
|
|
|
|