Add Multicast capabilities for LAN server scanning.
This commit is contained in:
1 parent
32bd0ab5bd
commit
eb3b59308b
10 files changed
+351
-153
No files matched your search
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user