From eb74549ddeb8eef672b821b334fa4a0449fc68da Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Sat, 12 Apr 2008 17:03:18 +0000 Subject: [PATCH] Only don't send packet on disabled multicast if it actually is a multicast packet --- code/qcommon/net_ip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/qcommon/net_ip.c b/code/qcommon/net_ip.c index c481addf..79ceb94d 100644 --- a/code/qcommon/net_ip.c +++ b/code/qcommon/net_ip.c @@ -608,7 +608,7 @@ void Sys_SendPacket( int length, const void *data, netadr_t to ) { (ip6_socket == INVALID_SOCKET && to.type == NA_MULTICAST6) ) return; - if(net_enabled->integer & NET_DISABLEMCAST) + if(to.type == NA_MULTICAST6 && (net_enabled->integer & NET_DISABLEMCAST)) return; memset(&addr, 0, sizeof(addr)); @@ -950,7 +950,7 @@ void NET_JoinMulticast6(void) { int err; - if(ip6_socket == INVALID_SOCKET || multicast6_socket != INVALID_SOCKET || net_enabled->integer & NET_DISABLEMCAST) + if(ip6_socket == INVALID_SOCKET || multicast6_socket != INVALID_SOCKET || (net_enabled->integer & NET_DISABLEMCAST)) return; if(IN6_IS_ADDR_MULTICAST(&boundto.sin6_addr) || IN6_IS_ADDR_UNSPECIFIED(&boundto.sin6_addr))