mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +00:00
Different default values for multicast-scope on Windows and non-Windows OS
This commit is contained in:
parent
d574e10bc4
commit
621f91783c
1 changed files with 5 additions and 1 deletions
|
@ -999,7 +999,7 @@ void NET_SetMulticast6(void)
|
||||||
if(*net_mcast6iface->string)
|
if(*net_mcast6iface->string)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
curgroup.ipv6mr_interface = atoi(net_mcast6iface->string);
|
curgroup.ipv6mr_interface = net_mcast6iface->integer;
|
||||||
#else
|
#else
|
||||||
curgroup.ipv6mr_interface = if_nametoindex(net_mcast6iface->string);
|
curgroup.ipv6mr_interface = if_nametoindex(net_mcast6iface->string);
|
||||||
#endif
|
#endif
|
||||||
|
@ -1474,7 +1474,11 @@ static qboolean NET_GetCvars( void ) {
|
||||||
modified += net_mcast6addr->modified;
|
modified += net_mcast6addr->modified;
|
||||||
net_mcast6addr->modified = qfalse;
|
net_mcast6addr->modified = qfalse;
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
net_mcast6iface = Cvar_Get( "net_mcast6iface", "0", CVAR_LATCH | CVAR_ARCHIVE );
|
net_mcast6iface = Cvar_Get( "net_mcast6iface", "0", CVAR_LATCH | CVAR_ARCHIVE );
|
||||||
|
#else
|
||||||
|
net_mcast6iface = Cvar_Get( "net_mcast6iface", "", CVAR_LATCH | CVAR_ARCHIVE );
|
||||||
|
#endif
|
||||||
modified += net_mcast6iface->modified;
|
modified += net_mcast6iface->modified;
|
||||||
net_mcast6iface->modified = qfalse;
|
net_mcast6iface->modified = qfalse;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue