Browse Source

proto: fix logic inversion in previous commit

Rogue ! effectively disabled the ipv6 multicast check.  Fix cd089c52

Why is it always the simple changes that catch you out?

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Kevin Darbyshire-Bryant 5 years ago
parent
commit
2750ce2e0a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      proto.c

+ 1 - 1
proto.c

@@ -131,7 +131,7 @@ parse_addr(struct interface *iface, const char *str, bool v6, int mask,
 	if (!parse_ip_and_netmask(af, str, &addr->addr, &addr->mask))
 		goto error;
 
-	if (!v6 && IN6_IS_ADDR_MULTICAST(&addr->addr.in6))
+	if (v6 && IN6_IS_ADDR_MULTICAST(&addr->addr.in6))
 		goto error;
 
 	if (broadcast)