We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
如题,需要和朋友分享自己的服务商流量,但总流量有限,且担心刷视频影响服务正常使用。
想单独给他开个服务端口(或者帐号),同时限制这个服务端口(或者帐号)的总流量,够他查资料、用AI啥的。
请问现在的脚本有这个功能吗?或者可以如何通过修改配置文件实现这一场景?
The text was updated successfully, but these errors were encountered:
垃圾脚本没有这个功能哦(
Sorry, something went wrong.
嘎谦虚……
AI说有解决方案,需要手动改配置,请问配置文件的位置?
以下是ai给出的方案,请参考
V2Ray 支持设置特定账号的使用流量限制。您可以在 V2Ray 的配置文件中添加以下内容来实现流量限制:
{ "inbounds": [ { "port": 1080, "protocol": "socks", "settings": { "auth": "password", "accounts": { "user1": { "password": "password1", "level": 1 }, "user2": { "password": "password2", "level": 2 } } } } ], "outbounds": [ { "protocol": "freedom", "settings": {} } ], "policy": { "levels": { "1": { "uplinkOnly": 1048576, "downlinkOnly": 1048576 }, "2": { "uplinkOnly": 2097152, "downlinkOnly": 2097152 } } } }
在这个示例中,有两个用户账号:"user1" 和 "user2"。每个用户账号都有一个密码和等级。在 "policy" 部分,您可以设置每个等级的流量限制。"uplinkOnly" 表示上传流量限制,"downlinkOnly" 表示下载流量限制,单位为字节。在上面的示例中,"user1" 的上传和下载流量限制为 1MB,"user2" 的上传和下载流量限制为 2MB。
No branches or pull requests
如题,需要和朋友分享自己的服务商流量,但总流量有限,且担心刷视频影响服务正常使用。
想单独给他开个服务端口(或者帐号),同时限制这个服务端口(或者帐号)的总流量,够他查资料、用AI啥的。
请问现在的脚本有这个功能吗?或者可以如何通过修改配置文件实现这一场景?
The text was updated successfully, but these errors were encountered: