trojan-go
trojan-go copied to clipboard
[BUG] 上传限速存在失效情况
- [x] 我确定我已经尝试多次复现此次问题,并且将会提供涉及此问题的系统和网络环境,软件及其版本。
我们建议您按照下方模板填写 Bug Report,以便我们收集更多的有效信息
简单描述这个 Bug
通过API管理用户,当我使用命令添加一个用户时,同时指定了 -upload-speed-limit -download-speed-limit
,此时上传限速无效,如果单独只指定上传-upload-speed-limit
,此时上传限速有效。
如何复现这个 Bug
服务端按照正常情况拉起一个服务,此时再通过API增加用户,同时指定限速命令
服务器和客户端环境信息
服务器为内网一台ubuntu服务器|本地Golang run 命令
测试客户端设备为ipad mini6,客户端小火箭,测速软件为 speedtest
服务端和客户端日志
服务器端日志无任何异常信息
服务端和客户端配置文件
服务端配置:
{
"run_type": "server",
"local_addr": "0.0.0.0",
"local_port": 1020,
"remote_addr": "192.168.2.120",
"remote_port": 5288,
"password": [
"1020"
],
"ssl": {
"cert": "/Users/xxx/Downloads/5kd3l7.20220624/fullchain.crt",
"key": "/Users/xxx/Downloads/5kd3l7.20220624/private.pem"
},
"api": {
"enabled": true,
"api_addr": "0.0.0.0",
"api_port": 1021
}
}
服务端和客户端版本信息
此为本地自行编译版本
Trojan-Go Custom Version
Go Version: go1.17.5
OS/Arch: darwin/arm64
Git Commit: Unknown Git Commit ID
Developed by PageFault (p4gefau1t)
Licensed under GNU General Public License version 3
GitHub Repository: https://github.com/p4gefau1t/trojan-go
Trojan-Go Documents: https://p4gefau1t.github.io/trojan-go/
我下载的最新版安装,限速为 -upload-speed-limit 1 -download-speed-limit 1 但是也没体现出来,,流量完全没有受限制,看视频照样很快。。。。。费解