mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-22 03:51:32 +00:00
Fixed an ommision where there was a default limit of 0 max proxies (where 0 was meant to be unlimited)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2418 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
89428eee82
commit
d2b31f9ac6
1 changed files with 8 additions and 2 deletions
|
@ -1121,7 +1121,7 @@ qboolean SV_ReadPendingProxy(cluster_t *cluster, oproxy_t *pend)
|
|||
pend->flushing = true;
|
||||
return false;
|
||||
}
|
||||
if (cluster->numproxies >= cluster->maxproxies)
|
||||
if (cluster->maxproxies && cluster->numproxies >= cluster->maxproxies)
|
||||
{
|
||||
s = "QTVSV 1\n"
|
||||
"TERROR: This QTV has reached it's connection limit\n"
|
||||
|
@ -1136,7 +1136,13 @@ qboolean SV_ReadPendingProxy(cluster_t *cluster, oproxy_t *pend)
|
|||
|
||||
if (!raw)
|
||||
{
|
||||
s = "QTVSV 1\n\n";
|
||||
s = "QTVSV 1\n";
|
||||
Net_ProxySend(cluster, pend, s, strlen(s));
|
||||
s = "BEGIN: ";
|
||||
Net_ProxySend(cluster, pend, s, strlen(s));
|
||||
s = qtv->server;
|
||||
Net_ProxySend(cluster, pend, s, strlen(s));
|
||||
s = "\n\n";
|
||||
Net_ProxySend(cluster, pend, s, strlen(s));
|
||||
}
|
||||
// else if (passwordprotected) //raw mode doesn't support passwords, so reject them
|
||||
|
|
Loading…
Reference in a new issue