diff options
author | Thilo Schulz <arny@ats.s.bawue.de> | 2011-07-29 13:46:50 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-10 22:55:15 +0000 |
commit | 7f1fee44e5cd45cff829951757f5c6460c06cbe8 (patch) | |
tree | 1e6f6bcf78ded45a20f2b9e7b0652fbc143a0724 /src/server/sv_client.c | |
parent | e7c06719510940898e1f7f8215f4137202611308 (diff) |
- Switch master server protocol to dpmaster for better game separation. Based partly on patch by Zack Middleton - Get rid of ugly cvars sv_heartbeat and cl_gamename and replace with single com_gamename - Remove sv_flatline. Flatlines are ignored by dpmaster and are considered to be insecure because flatlines can be udp-spoofed.
Diffstat (limited to 'src/server/sv_client.c')
-rw-r--r-- | src/server/sv_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/sv_client.c b/src/server/sv_client.c index 094ed98f..f3d190de 100644 --- a/src/server/sv_client.c +++ b/src/server/sv_client.c @@ -66,10 +66,10 @@ void SV_GetChallenge(netadr_t from) if(gameName && *gameName) { // reject client if the heartbeat string sent by the client doesn't match ours - if(strcmp(gameName, sv_heartbeat->string)) + if(strcmp(gameName, com_gamename->string)) { NET_OutOfBandPrint(NS_SERVER, from, "print\nGame mismatch: This is a %s server\n", - sv_heartbeat->string); + com_gamename->string); return; } } |