aboutsummaryrefslogtreecommitdiffstats
path: root/code/unix
diff options
context:
space:
mode:
Diffstat (limited to 'code/unix')
-rwxr-xr-xcode/unix/unix_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/unix/unix_net.c b/code/unix/unix_net.c
index a7412c0..cfb984a 100755
--- a/code/unix/unix_net.c
+++ b/code/unix/unix_net.c
@@ -279,7 +279,7 @@ qboolean Sys_IsLANAddress (netadr_t adr) {
// 192.168.0.0 - 192.168.255.255 (192.168/16 prefix)
if(adr.ip[0] == 10)
return qtrue;
- if(adr.ip[0] == 172 && adr.ip[1]&0xf0 == 16)
+ if(adr.ip[0] == 172 && (adr.ip[1]&0xf0) == 16)
return qtrue;
if(adr.ip[0] == 192 && adr.ip[1] == 168)
return qtrue;