aboutsummaryrefslogtreecommitdiffstats
path: root/code/server
diff options
context:
space:
mode:
authorthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-04-09 14:37:42 +0000
committerthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-04-09 14:37:42 +0000
commitd07f81b00b41cf18a47fc70029bc1db85bc8c1a4 (patch)
tree5a1ece65070c5cf46298506a24c8f6d7e74d42e7 /code/server
parent549f5614f649aade0fb1dc6869c8ba192ea0173d (diff)
downloadioquake3-aero-d07f81b00b41cf18a47fc70029bc1db85bc8c1a4.tar.gz
ioquake3-aero-d07f81b00b41cf18a47fc70029bc1db85bc8c1a4.zip
Add Multicast capabilities for LAN server scanning.
git-svn-id: svn://svn.icculus.org/quake3/trunk@1305 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/server')
-rw-r--r--code/server/sv_init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/code/server/sv_init.c b/code/server/sv_init.c
index 69d08ea..3b9cf3d 100644
--- a/code/server/sv_init.c
+++ b/code/server/sv_init.c
@@ -286,6 +286,9 @@ void SV_Startup( void ) {
}
Cvar_Set( "sv_running", "1" );
+
+ // Join the ipv6 multicast group now that a map is running so clients can scan for us on the local network.
+ NET_JoinMulticast6();
}
@@ -734,6 +737,8 @@ void SV_Shutdown( char *finalmsg ) {
Com_Printf( "----- Server Shutdown (%s) -----\n", finalmsg );
+ NET_LeaveMulticast6();
+
if ( svs.clients && !com_errorEntered ) {
SV_FinalMessage( finalmsg );
}