summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTony J. White <tjw@tjw.org>2007-08-13 17:52:31 +0000
committerTony J. White <tjw@tjw.org>2007-08-13 17:52:31 +0000
commit9bb5d25cc24fd678660af34b9b19e21a37f09bd3 (patch)
tree101f473841bbcd598ef2e64d11ee8aabe9399615 /src
parentd8634af0ea3a97db400f43272c3261e7605a2b33 (diff)
* 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.
Diffstat (limited to 'src')
-rw-r--r--src/server/sv_main.c4
1 files changed, 0 insertions, 4 deletions
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, ':' ) ) {