From d07f81b00b41cf18a47fc70029bc1db85bc8c1a4 Mon Sep 17 00:00:00 2001 From: thilo Date: Wed, 9 Apr 2008 14:37:42 +0000 Subject: Add Multicast capabilities for LAN server scanning. git-svn-id: svn://svn.icculus.org/quake3/trunk@1305 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/server/sv_init.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'code/server') 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 ); } -- cgit v1.2.3