summaryrefslogtreecommitdiff
path: root/src/net/connectionhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/connectionhandler.cpp')
-rw-r--r--src/net/connectionhandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/connectionhandler.cpp b/src/net/connectionhandler.cpp
index 3f3bb72a..123dc0b7 100644
--- a/src/net/connectionhandler.cpp
+++ b/src/net/connectionhandler.cpp
@@ -23,6 +23,7 @@
#include "net/connectionhandler.hpp"
#include "defines.h"
+#include "common/configuration.hpp"
#include "net/bandwidth.hpp"
#include "net/messagein.hpp"
#include "net/messageout.hpp"
@@ -38,7 +39,7 @@ bool ConnectionHandler::startListen(enet_uint16 port)
LOG_INFO("Listening on port " << port << "...");
host = enet_host_create(
&address /* the address to bind the server host to */,
- MAX_CLIENTS /* allow up to MAX_CLIENTS connections */,
+ Configuration::getValue("net_maxClients", 1000) /* allowed connections */,
0 /* assume any amount of incoming bandwidth */,
0 /* assume any amount of outgoing bandwidth */);