|
|
|
@ -818,7 +818,6 @@ change_ssray_config() { |
|
|
|
|
|
|
|
|
|
if [[ $ssray ]]; then |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while :; do |
|
|
|
|
echo |
|
|
|
|
echo -e "$yellow 1. $none修改 Shadowsocks - V2ray插件 端口" |
|
|
|
@ -991,7 +990,7 @@ change_vmess_user () { |
|
|
|
|
read -p "[默认:64]" new_alterId |
|
|
|
|
[[ -z $new_alterId ]] && new_alterId=64 |
|
|
|
|
if [[ $new_alterId =~ ^[0-9]+$ ]]; then |
|
|
|
|
break; |
|
|
|
|
break |
|
|
|
|
else |
|
|
|
|
_red "$new_alterId 是啥???" |
|
|
|
|
fi |
|
|
|
@ -2325,13 +2324,17 @@ start_v2ray() { |
|
|
|
|
|
|
|
|
|
# systemctl start v2ray |
|
|
|
|
service v2ray start >/dev/null 2>&1 |
|
|
|
|
if [[ $? -ne 0 ]]; then |
|
|
|
|
echo |
|
|
|
|
echo -e "${red} V2Ray 启动失败!$none" |
|
|
|
|
echo '正在启动....' |
|
|
|
|
echo |
|
|
|
|
sleep 3 |
|
|
|
|
if [[ ! $(pgrep -f /usr/bin/v2ray/v2ray) ]]; then |
|
|
|
|
echo |
|
|
|
|
_red "警告!!! V2Ray 启动失败!!! 请检查端口是否冲突!!! 配置是否正确!!!!" |
|
|
|
|
echo |
|
|
|
|
else |
|
|
|
|
echo |
|
|
|
|
echo -e "${green} V2Ray 已启动$none" |
|
|
|
|
_green " V2Ray 启动成功!!!!" |
|
|
|
|
echo |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
@ -2353,13 +2356,17 @@ stop_v2ray() { |
|
|
|
|
restart_v2ray() { |
|
|
|
|
# systemctl restart v2ray |
|
|
|
|
service v2ray restart >/dev/null 2>&1 |
|
|
|
|
if [[ $? -ne 0 ]]; then |
|
|
|
|
echo |
|
|
|
|
echo -e "${red} V2Ray 重启失败!$none" |
|
|
|
|
echo '正在重启....' |
|
|
|
|
echo |
|
|
|
|
sleep 3 |
|
|
|
|
if [[ ! $(pgrep -f /usr/bin/v2ray/v2ray) ]]; then |
|
|
|
|
echo |
|
|
|
|
_red "警告!!! V2Ray 重启失败!!! 请检查端口是否冲突!!! 配置是否正确!!!!" |
|
|
|
|
echo |
|
|
|
|
else |
|
|
|
|
echo |
|
|
|
|
echo -e "${green} V2Ray 重启完成 $none" |
|
|
|
|
_green " V2Ray 重启成功!!!!" |
|
|
|
|
echo |
|
|
|
|
fi |
|
|
|
|
} |
|
|
|
@ -3008,7 +3015,15 @@ reload) |
|
|
|
|
config |
|
|
|
|
[[ $v2ray_transport == [45] && $caddy ]] && caddy_config |
|
|
|
|
clear |
|
|
|
|
view_v2ray_config_info |
|
|
|
|
if [[ ! $(pgrep -f /usr/bin/v2ray/v2ray) ]]; then |
|
|
|
|
echo |
|
|
|
|
_red "警告!!! V2Ray 加载失败!!! 请检查端口是否冲突!!! 配置是否正确!!!!" |
|
|
|
|
echo |
|
|
|
|
else |
|
|
|
|
echo |
|
|
|
|
_green " V2Ray 加载成功!!! 如需查看 V2Ray 配置请使用 v2ray info" |
|
|
|
|
echo |
|
|
|
|
fi |
|
|
|
|
;; |
|
|
|
|
time) |
|
|
|
|
_load sys-info.sh |
|
|
|
|