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 8f0307ea1bab71649385292c146924082a9353cf..90dcaf53f46ff66a83fdda5d97041bf9a656020c 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];