From 6a296d294de701b04ef65a3a55cbda9970a39940 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 10 Apr 2019 21:46:07 +0100 Subject: [PATCH] DHCP: Dont really add static address in test mode --- src/dhcp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dhcp.c b/src/dhcp.c index d0f9a453..ca2dac12 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -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 -- 2.47.2