mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
port range support (parent extport / intport)
This commit is contained in:
1 parent
1565c67c13
commit
6ca4a2686d
11 files changed
+128
-11
No files matched your search
+6
-1
@@ -313,7 +313,9 @@ typedef enum {
|
||||
R_TLS,
|
||||
R_HA,
|
||||
R_DNS,
|
||||
R_IMAP
|
||||
R_IMAP,
|
||||
R_EXTPORT,
|
||||
R_INTPORT
|
||||
} REDIRTYPE;
|
||||
|
||||
struct redirdesc {
|
||||
@@ -335,6 +337,8 @@ struct chain {
|
||||
unsigned char * extpass;
|
||||
unsigned short weight;
|
||||
unsigned short cidr;
|
||||
/* local port range for extport/intport, first in the low half */
|
||||
uint32_t range;
|
||||
};
|
||||
|
||||
struct period {
|
||||
@@ -669,6 +673,7 @@ struct clientparam {
|
||||
maxtrafout64;
|
||||
PROXYSOCKADDRTYPE sincl, sincr;
|
||||
PROXYSOCKADDRTYPE sinsl, sinsr, req;
|
||||
uint32_t extport, intport;
|
||||
|
||||
uint64_t statscli64,
|
||||
statssrv64;
|
||||
|
||||
Reference in new issue
Block a user