From 5936f87c46a0ad2ec68509c78992bae69ee7c238 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 fb0fa35..c0a3c0d 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-11$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 ;;