]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
DHCP: Dont really add static address in test mode
authorRoy Marples <roy@marples.name>
Wed, 10 Apr 2019 20:46:07 +0000 (21:46 +0100)
committerRoy Marples <roy@marples.name>
Wed, 10 Apr 2019 20:46:07 +0000 (21:46 +0100)
src/dhcp.c

index d0f9a453a1c168c18631c039777d211450ccf3f3..ca2dac129586a517598466ce9125cbddbef209bf 100644 (file)
@@ -2464,7 +2464,8 @@ static void
 dhcp_arp_bind(struct interface *ifp)
 {
 
-       if (dhcp_arp_address(ifp) == 1)
+       if (ifp->ctx->options & DHCPCD_TEST ||
+           dhcp_arp_address(ifp) == 1)
                dhcp_bind(ifp);
 }
 #endif