Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] 升级到v5.1.0后traffic.sh运行不了了 #271

Open
bobwang3 opened this issue Oct 5, 2022 · 1 comment
Open

[bug] 升级到v5.1.0后traffic.sh运行不了了 #271

bobwang3 opened this issue Oct 5, 2022 · 1 comment
Labels
bug Something isn't working unconfirmed Waiting investigation

Comments

@bobwang3
Copy link

bobwang3 commented Oct 5, 2022

traffic.sh是https://guide.v2fly.org/advanced/traffic.html 这里的。
现在运行会提示以下错误:

./traffic.sh: line 11: /usr/local/bin/v2ctl: No such file or directory
------------Inbound----------
numfmt: input line is too short, no numbers found to convert in field 2
-------------User------------------------------------
numfmt: input line is too short, no numbers found to convert in field 2

我发现v5.1.0安装好了之后v2ctl没有了。这个问题应该怎么解决?

@bobwang3 bobwang3 added bug Something isn't working unconfirmed Waiting investigation labels Oct 5, 2022
@martinmyj
Copy link

5.0以后所有V2ctl的 命令集成到了v2ray里面了,可以通过v2ray api stats 获取流量信息,不过要解析里面的数据得自己重新写shell脚本了,原来的v2ctl 获取的数据和新的格式不一样,我shell对解析文本不熟练,这就很困难了,但是他还可以输出到json格式,然后自己去做解析,希望大佬写一下新版本的sh文件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed Waiting investigation
Projects
None yet
Development

No branches or pull requests

2 participants