Add host-entries for all IPv6 addresses
authorSteven Barth <steven@midlink.org>
Fri, 8 Aug 2014 05:30:34 +0000 (07:30 +0200)
committerSteven Barth <steven@midlink.org>
Fri, 8 Aug 2014 05:30:34 +0000 (07:30 +0200)
src/dhcpv6-ia.c

index 8f0307e..90dcaf5 100644 (file)
@@ -269,7 +269,7 @@ void dhcpv6_write_statefile(void)
 
                                                inet_ntop(AF_INET6, &addr, ipbuf, sizeof(ipbuf) - 1);
 
-                                               if (c->length == 128 && c->hostname && i == 0) {
+                                               if (c->length == 128 && c->hostname) {
                                                        fputs(ipbuf, fp);
 
                                                        char b[256];