diff options
Diffstat (limited to 'src/servers.cpp')
-rw-r--r-- | src/servers.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/servers.cpp b/src/servers.cpp index 56e0d0c41..440a01e38 100644 --- a/src/servers.cpp +++ b/src/servers.cpp @@ -35,6 +35,7 @@ using namespace std; #include "connection.h" extern time_t TIME; +extern int MaxConn; std::deque<std::string> xsums; @@ -128,7 +129,7 @@ bool serverrec::CreateListener(char* newhost, int p) this->port = p; - listen(this->fd,32); + listen(this->fd, MaxConn); return true; } |