From 71b5740454a3f16c1852b5c76d2ee6008dc4beaf Mon Sep 17 00:00:00 2001 From: BOYPT Date: Sat, 23 Feb 2019 18:41:08 +0800 Subject: [PATCH] add traffic cmd --- v2ray.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/v2ray.sh b/v2ray.sh index e9beb50..06704bc 100644 --- a/v2ray.sh +++ b/v2ray.sh @@ -143,6 +143,13 @@ create_vmess_URL_config() { EOF fi } +view_v2ray_traffic() { + _load v2ray-traffic.sh + echo + echo + v2_query_all + echo +} view_v2ray_config_info() { _load v2ray-info.sh @@ -2802,6 +2809,8 @@ _help() { ${green}v2ray update $none更新 V2Ray + ${green}v2ray traffic $none查看 V2Ray 流量 + ${green}v2ray update.sh $none更新 V2Ray 管理脚本 ${green}v2ray uninstall $none卸载 V2Ray @@ -2847,6 +2856,8 @@ menu() { echo echo -e "$yellow 11. $none其他" echo + echo -e "$yellow 11. $none查看 V2ray 流量统计" + echo echo -e "温馨提示...如果你不想执行选项...按$yellow Ctrl + C $none即可退出" echo read -p "$(echo -e "请选择菜单 [${magenta}1-9$none]:")" choose @@ -2900,6 +2911,10 @@ menu() { other break ;; + 12) + view_v2ray_traffic + break + ;; *) error ;; @@ -3030,6 +3045,9 @@ v | version) bbr) other ;; +traffic) + view_v2ray_traffic + ;; help | *) _help ;;