From 59adad4d53442df32ab4972c51b6d1fd827a2959 Mon Sep 17 00:00:00 2001 From: Eugene Bujak Date: Thu, 13 Dec 2018 14:51:35 +0300 Subject: [PATCH] DHCP -- Use uint64 for lease duration --- config.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config.go b/config.go index 9cd54ddf..b3d88388 100644 --- a/config.go +++ b/config.go @@ -58,12 +58,12 @@ type dhcpState struct { // field ordering is important -- yaml fields will mirror ordering from here type dhcpConfig struct { - Enabled bool `json:"enabled" yaml:"enabled"` - GatewayIP string `json:"gateway_ip" yaml:"gateway_ip"` - SubnetMask string `json:"subnet_mask" yaml:"subnet_mask"` - RangeStart string `json:"range_start" yaml:"range_start"` - RangeEnd string `json:"range_end" yaml:"range_end"` - LeaseDuration time.Duration `json:"lease_duration" yaml:"lease_duration"` + Enabled bool `json:"enabled" yaml:"enabled"` + GatewayIP string `json:"gateway_ip" yaml:"gateway_ip"` + SubnetMask string `json:"subnet_mask" yaml:"subnet_mask"` + RangeStart string `json:"range_start" yaml:"range_start"` + RangeEnd string `json:"range_end" yaml:"range_end"` + LeaseDuration uint64 `json:"lease_duration" yaml:"lease_duration"` // in seconds } // field ordering is important -- yaml fields will mirror ordering from here