dhcpv6: fix socket generation on relay master
authorSteven Barth <steven@midlink.org>
Fri, 17 Jul 2015 11:06:19 +0000 (13:06 +0200)
committerSteven Barth <steven@midlink.org>
Fri, 17 Jul 2015 11:06:19 +0000 (13:06 +0200)
src/dhcpv6.c

index 7442b2d9d6d0061eaf6cc2b34dcafeb037caf8eb..c62a08f9a761f3c58ace52e24d4eb8287b98e47b 100644 (file)
@@ -51,7 +51,7 @@ int setup_dhcpv6_interface(struct interface *iface, bool enable)
        }
 
        // Configure multicast settings
-       if (enable && iface->dhcpv6 && !iface->master) {
+       if (enable && iface->dhcpv6) {
                int sock = socket(AF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, IPPROTO_UDP);
                if (sock < 0) {
                        syslog(LOG_ERR, "Failed to create DHCPv6 server socket: %s",