diff options
Diffstat (limited to 'src/qcommon/net_ip.c')
-rw-r--r-- | src/qcommon/net_ip.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qcommon/net_ip.c b/src/qcommon/net_ip.c index 9ad4a821..db9f2924 100644 --- a/src/qcommon/net_ip.c +++ b/src/qcommon/net_ip.c @@ -995,7 +995,7 @@ void NET_SetMulticast6(void) if(*net_mcast6iface->string) { #ifdef _WIN32 - curgroup.ipv6mr_interface = atoi(net_mcast6iface->string); + curgroup.ipv6mr_interface = net_mcast6iface->integer; #else curgroup.ipv6mr_interface = if_nametoindex(net_mcast6iface->string); #endif @@ -1470,7 +1470,11 @@ static qboolean NET_GetCvars( void ) { modified += net_mcast6addr->modified; net_mcast6addr->modified = qfalse; +#ifdef _WIN32 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; net_mcast6iface->modified = qfalse; |