Skip to content

Conversation

@tongsq
Copy link

@tongsq tongsq commented Apr 18, 2022

限速器配置参数说明:num1,num2,num3
num1: 时间段秒数,可为大于0的整数,0表示不限制
num2: 时间段内的访问总次数,可为大于0的整数,0表示不限制
num3: 并发数,可为大于0的整数,0表示不限制

1、支持将限速器参数放在url中配置,如(设置10秒内可访问10次,最大并发数2):
-L http://root:123@:8888?limiter=10,10,2
2、也可将限速器配置在secrets文件中用户名密码后面,secrets.txt示例文件如下:

period for live reloading

reload 10s

username password

root 123 10,10,6
root2 123 0,0,3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant