Skip to content

Commit

Permalink
添加v2ray流量统计命令行
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Nov 12, 2019
1 parent 1562a14 commit bbe0577
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [v3.7.1](https://github.com/Jrohy/multi-v2ray/releases/tag/v3.7.1)(2019-11-12)
- fix [#244](https://github.com/Jrohy/multi-v2ray/issues/244), 修复v2ray流量统计bug
- 修改v2ray流量统计命令行为`v2ray stats`, iptables流量统计为`v2ray iptables`

## [v3.7.0](https://github.com/Jrohy/multi-v2ray/releases/tag/v3.7.0)(2019-11-07)
- 添加更多Cloudcflare cdn 端口, 端口详见: [Identifying network ports compatible with Cloudflare's proxy
](https://support.cloudflare.com/hc/en-us/articles/200169156-Identifying-network-ports-compatible-with-Cloudflare-s-proxy)
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ v2ray [-h|--help] [options]
tfo 修改tcpFastOpen
stream 修改传输协议
cdn 走cdn
stats iptables流量统计
stats v2ray流量统计
iptables iptables流量统计
clean 清理日志
log 查看日志
```
Expand Down
3 changes: 2 additions & 1 deletion README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ v2ray [-h|--help] [options]
tfo modify tcpFastOpen
stream modify protocol
cdn cdn mode
stats iptables traffic statistics
stats v2ray traffic statistics
iptables iptables traffic statistics
clean clean v2ray log
log check v2ray log
```
Expand Down
2 changes: 1 addition & 1 deletion v2ray.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# bash completion for v2ray -*- shell-script -*-
function _auto_tab() {
local options_array=("start" "stop" "restart" "status" "update" "update.sh" "add" "del" "info" "port" "tls" "tfo" "stream" "cdn" "stats" "clean" "log" "new" "-h" "-v")
local options_array=("start" "stop" "restart" "status" "update" "update.sh" "add" "del" "info" "port" "tls" "tfo" "stream" "iptables" "cdn" "stats" "clean" "log" "new" "-h" "-v")
local add_array=("wechat" "utp" "srtp" "dtls" "wireguard" "socks" "mtproto" "ss")
local cur pre

Expand Down
8 changes: 6 additions & 2 deletions v2ray_util/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def help():
tfo 修改tcpFastOpen
stream 修改传输协议
cdn 走cdn
stats iptables流量统计
stats v2ray流量统计
iptables iptables流量统计
clean 清理日志
log 查看日志
""".format(exec_name[exec_name.rfind("/") + 1:]))
Expand All @@ -60,7 +61,8 @@ def help():
tfo modify tcpFastOpen
stream modify protocol
cdn cdn mode
stats iptables traffic statistics
stats v2ray traffic statistics
iptables iptables traffic statistics
clean clean v2ray log
log check v2ray log
""".format(exec_name[exec_name.rfind("/") + 1:]))
Expand Down Expand Up @@ -99,6 +101,8 @@ def parse_arg():
elif sys.argv[1] == "stream":
stream.modify()
elif sys.argv[1] == "stats":
stats_ctr.manage()
elif sys.argv[1] == "iptables":
iptables_ctr.manage()
elif sys.argv[1] == "clean":
V2ray.cleanLog()
Expand Down

0 comments on commit bbe0577

Please sign in to comment.