From a8d1f5cd1b132f10e5d86746ab82de1cd3c2b616 Mon Sep 17 00:00:00 2001 From: toby lorne Date: Wed, 13 Jan 2021 19:24:41 +0000 Subject: [PATCH] dhcp: default dhcp clien timeout is 10s Consistent with https://github.com/d2g/dhcp4client/blob/ef524ad9cb076fe235ecc3c55913ef8445fa35fa/client.go#L39 Signed-off-by: toby lorne Co-authored-by: bruce ma --- plugins/ipam/dhcp/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ipam/dhcp/main.go b/plugins/ipam/dhcp/main.go index 514e4f5b..bbb2c6d4 100644 --- a/plugins/ipam/dhcp/main.go +++ b/plugins/ipam/dhcp/main.go @@ -43,7 +43,7 @@ func main() { daemonFlags.StringVar(&pidfilePath, "pidfile", "", "optional path to write daemon PID to") daemonFlags.StringVar(&hostPrefix, "hostprefix", "", "optional prefix to host root") daemonFlags.StringVar(&socketPath, "socketpath", "", "optional dhcp server socketpath") - daemonFlags.DurationVar(&timeout, "timeout", 5*time.Second, "optional dhcp client timeout duration") + daemonFlags.DurationVar(&timeout, "timeout", 10*time.Second, "optional dhcp client timeout duration") daemonFlags.Parse(os.Args[2:]) if socketPath == "" {