mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
connlim / noconnlim commands added to support connection / connectio rate limits
This commit is contained in:
1 parent
e076fff33c
commit
ff91a6fe72
8 files changed
+168
-23
No files matched your search
+13
-2
@@ -299,11 +299,21 @@ struct ace {
|
||||
struct bandlim {
|
||||
struct bandlim *next;
|
||||
struct ace *ace;
|
||||
unsigned basetime;
|
||||
unsigned rate;
|
||||
time_t basetime;
|
||||
unsigned nexttime;
|
||||
unsigned rate;
|
||||
};
|
||||
|
||||
struct connlim {
|
||||
struct connlim *next;
|
||||
struct ace *ace;
|
||||
time_t basetime;
|
||||
uint64_t rating;
|
||||
unsigned period;
|
||||
unsigned rate;
|
||||
};
|
||||
|
||||
|
||||
typedef enum {NONE, MINUTELY, HOURLY, DAILY, WEEKLY, MONTHLY, ANNUALLY, NEVER} ROTATION;
|
||||
|
||||
struct schedule {
|
||||
@@ -528,6 +538,7 @@ struct extparam {
|
||||
struct ace * acl;
|
||||
char * conffile;
|
||||
struct bandlim * bandlimiter, *bandlimiterout;
|
||||
struct connlim * connlimiter;
|
||||
struct trafcount * trafcounter;
|
||||
struct srvparam *services;
|
||||
int stacksize,
|
||||
|
||||
Reference in new issue
Block a user