|
|
@ -10,7 +10,7 @@ none='\e[0m' |
|
|
|
# Root |
|
|
|
# Root |
|
|
|
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1 |
|
|
|
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1 |
|
|
|
|
|
|
|
|
|
|
|
_version="v1.55" |
|
|
|
_version="v1.56" |
|
|
|
|
|
|
|
|
|
|
|
cmd="apt-get" |
|
|
|
cmd="apt-get" |
|
|
|
|
|
|
|
|
|
|
@ -680,7 +680,7 @@ change_shadowsocks_password() { |
|
|
|
change_shadowsocks_ciphers() { |
|
|
|
change_shadowsocks_ciphers() { |
|
|
|
echo |
|
|
|
echo |
|
|
|
while :; do |
|
|
|
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 |
|
|
|
for ((i = 1; i <= ${#ciphers[*]}; i++)); do |
|
|
|
ciphers_show="${ciphers[$i - 1]}" |
|
|
|
ciphers_show="${ciphers[$i - 1]}" |
|
|
|
echo |
|
|
|
echo |
|
|
@ -923,7 +923,7 @@ change_v2ray_transport_ask() { |
|
|
|
change_v2ray_transport() { |
|
|
|
change_v2ray_transport() { |
|
|
|
echo |
|
|
|
echo |
|
|
|
while :; do |
|
|
|
while :; do |
|
|
|
echo -e "请选择 "$yellow"V2Ray"$none" 传输协议 [${magenta}1-15$none]" |
|
|
|
echo -e "请选择 "$yellow"V2Ray"$none" 传输协议 [${magenta}1-${#transport[*]}$none]" |
|
|
|
echo |
|
|
|
echo |
|
|
|
for ((i = 1; i <= ${#transport[*]}; i++)); do |
|
|
|
for ((i = 1; i <= ${#transport[*]}; i++)); do |
|
|
|
Stream="${transport[$i - 1]}" |
|
|
|
Stream="${transport[$i - 1]}" |
|
|
@ -1838,7 +1838,7 @@ change_proxy_site_config() { |
|
|
|
} |
|
|
|
} |
|
|
|
domain_check() { |
|
|
|
domain_check() { |
|
|
|
# test_domain=$(dig $new_domain +short) |
|
|
|
# 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 |
|
|
|
if [[ $test_domain != $ip ]]; then |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo -e "$red 检测域名解析错误....$none" |
|
|
|
echo -e "$red 检测域名解析错误....$none" |
|
|
|