From d2b31f9ac6a6a0dd9eca04fb8326b56ee5a45a0a Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 20 Oct 2006 14:19:32 +0000 Subject: [PATCH] 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 --- fteqtv/forward.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fteqtv/forward.c b/fteqtv/forward.c index d8358c60e..7146ddf82 100644 --- a/fteqtv/forward.c +++ b/fteqtv/forward.c @@ -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