|
|
|
@ -10,7 +10,7 @@ none='\e[0m' |
|
|
|
|
# Root |
|
|
|
|
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1 |
|
|
|
|
|
|
|
|
|
_version="v2.33" |
|
|
|
|
_version="v2.34" |
|
|
|
|
|
|
|
|
|
cmd="apt-get" |
|
|
|
|
|
|
|
|
@ -488,6 +488,8 @@ shadowsocks_port_config() { |
|
|
|
|
$v2ray_port) |
|
|
|
|
echo |
|
|
|
|
echo -e " 不能和$cyan V2Ray 端口 $none一毛一样...." |
|
|
|
|
echo |
|
|
|
|
echo -e " 当前 V2Ray 端口:${cyan}$v2ray_port${none}" |
|
|
|
|
error |
|
|
|
|
;; |
|
|
|
|
[1-9] | [1-9][0-9] | [1-9][0-9][0-9] | [1-9][0-9][0-9][0-9] | [1-5][0-9][0-9][0-9][0-9] | 6[0-4][0-9][0-9][0-9] | 65[0-4][0-9][0-9] | 655[0-3][0-5]) |
|
|
|
@ -1545,12 +1547,16 @@ v2ray_dynamic_port_start() { |
|
|
|
|
$v2ray_port) |
|
|
|
|
echo |
|
|
|
|
echo " 不能和 V2Ray 端口一毛一样...." |
|
|
|
|
echo |
|
|
|
|
echo -e " 当前 V2Ray 端口:${cyan}$v2ray_port${none}" |
|
|
|
|
error |
|
|
|
|
;; |
|
|
|
|
[1-9] | [1-9][0-9] | [1-9][0-9][0-9] | [1-9][0-9][0-9][0-9] | [1-5][0-9][0-9][0-9][0-9] | 6[0-4][0-9][0-9][0-9] | 65[0-4][0-9][0-9] | 655[0-3][0-5]) |
|
|
|
|
if [[ $shadowsocks ]] && [[ $v2ray_dynamic_port_start_input == $ssport ]]; then |
|
|
|
|
echo |
|
|
|
|
echo " 不能和 Shadowsocks 端口一毛一样...." |
|
|
|
|
echo |
|
|
|
|
echo -e " 当前 Shadowsocks 端口:${cyan}$ssport${none}" |
|
|
|
|
error |
|
|
|
|
else |
|
|
|
|
echo |
|
|
|
@ -1590,6 +1596,8 @@ v2ray_dynamic_port_end() { |
|
|
|
|
if [[ $v2ray_dynamic_port_end_input -le $v2ray_dynamic_port_start_input ]]; then |
|
|
|
|
echo |
|
|
|
|
echo " 不能小于或等于 V2Ray 动态端口开始范围" |
|
|
|
|
echo |
|
|
|
|
echo -e " 当前 V2Ray 动态端口开始:${cyan}$v2ray_dynamic_port_start_input${none}" |
|
|
|
|
error |
|
|
|
|
elif [ $lt_v2ray_port ] && [[ ${v2ray_dynamic_port_end_input} -ge $v2ray_port ]]; then |
|
|
|
|
echo |
|
|
|
@ -1674,12 +1682,16 @@ change_v2ray_dynamic_port_start() { |
|
|
|
|
$v2ray_port) |
|
|
|
|
echo |
|
|
|
|
echo " 不能和 V2Ray 端口一毛一样...." |
|
|
|
|
echo |
|
|
|
|
echo -e " 当前 V2Ray 端口:${cyan}$v2ray_port${none}" |
|
|
|
|
error |
|
|
|
|
;; |
|
|
|
|
[1-9] | [1-9][0-9] | [1-9][0-9][0-9] | [1-9][0-9][0-9][0-9] | [1-5][0-9][0-9][0-9][0-9] | 6[0-4][0-9][0-9][0-9] | 65[0-4][0-9][0-9] | 655[0-3][0-5]) |
|
|
|
|
if [[ $shadowsocks ]] && [[ $v2ray_dynamic_port_start_input == $ssport ]]; then |
|
|
|
|
echo |
|
|
|
|
echo " 不能和 Shadowsocks 端口一毛一样...." |
|
|
|
|
echo |
|
|
|
|
echo -e " 当前 Shadowsocks 端口:${cyan}$ssport${none}" |
|
|
|
|
error |
|
|
|
|
else |
|
|
|
|
echo |
|
|
|
@ -1719,6 +1731,8 @@ change_v2ray_dynamic_port_end() { |
|
|
|
|
if [[ $v2ray_dynamic_port_end_input -le $v2ray_dynamic_port_start_input ]]; then |
|
|
|
|
echo |
|
|
|
|
echo " 不能小于或等于 V2Ray 动态端口开始范围" |
|
|
|
|
echo |
|
|
|
|
echo -e " 当前 V2Ray 动态端口开始:${cyan}$v2ray_dynamic_port_start_input${none}" |
|
|
|
|
error |
|
|
|
|
elif [ $lt_v2ray_port ] && [[ ${v2ray_dynamic_port_end_input} -ge $v2ray_port ]]; then |
|
|
|
|
echo |
|
|
|
|