From 9bb5d25cc24fd678660af34b9b19e21a37f09bd3 Mon Sep 17 00:00:00 2001 From: "Tony J. White" Date: Mon, 13 Aug 2007 17:52:31 +0000 Subject: * sv_masterX cvars were being cleared by the server whenever a DNS lookup failed on the cvar value. This behaviour went unnoticed in Q3 since lookups were typically only done when the server started or sv_masterX cvars were manually changed. Now that Tremulous does fresh DNS lookups after every map change, any network hiccup could clear out the sv_masterX settings. This cvar clearing is now removed. * removes a duplicate line setting sv_master[ X ]->modified. --- src/server/sv_main.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/server/sv_main.c') diff --git a/src/server/sv_main.c b/src/server/sv_main.c index ad9669b4..b4552470 100644 --- a/src/server/sv_main.c +++ b/src/server/sv_main.c @@ -246,11 +246,7 @@ void SV_MasterHeartbeat( void ) { Com_Printf( "Resolving %s\n", sv_master[i]->string ); if ( !NET_StringToAdr( sv_master[i]->string, &adr[i] ) ) { - // if the address failed to resolve, clear it - // so we don't take repeated dns hits Com_Printf( "Couldn't resolve address: %s\n", sv_master[i]->string ); - Cvar_Set( sv_master[i]->name, "" ); - sv_master[i]->modified = qfalse; continue; } if ( !strchr( sv_master[i]->string, ':' ) ) { -- cgit