add connections per ip limit to the connection server (public port only)

This commit is contained in:
DarthArgus
2016-09-29 11:07:01 -05:00
parent 45ab99151d
commit 150a80efa8
3 changed files with 17 additions and 5 deletions
@@ -42,6 +42,7 @@ public:
int clientMaxDataHoldTime;
int clientHashTableSize;
int lagReportThreshold;
int maxConnectionsPerIP;
bool validateStationKey;
const char * sessionServers;
@@ -133,6 +134,7 @@ public:
static bool getValidateClientVersion();
static int getConnectionServerNumber();
static int getMaxConnectionsPerIP();
static int getFakeBuddyPoints();
static const char * getPublicBindAddress();
@@ -465,4 +467,9 @@ inline int ConfigConnectionServer::getConnectionServerNumber()
return data->connectionServerNumber;
}
inline const int ConfigConnectionServer::getMaxConnectionsPerIP()
{
return data->maxConnectionsPerIP;
}
#endif // _ConfigConnectionServer_H