diff --git a/dhcpd/check_other_dhcp.go b/dhcpd/check_other_dhcp.go index ebcfd363..c4716256 100644 --- a/dhcpd/check_other_dhcp.go +++ b/dhcpd/check_other_dhcp.go @@ -33,7 +33,7 @@ func CheckIfOtherDHCPServersPresentV4(ifaceName string) (bool, error) { } if runtime.GOOS == "darwin" { - return false, fmt.Errorf("Can't find DHCP server: not supported on macOS") + return false, fmt.Errorf("can't find DHCP server: not supported on macOS") } srcIP := ifaceIPNet[0] diff --git a/dhcpd/nclient4/client.go b/dhcpd/nclient4/client.go index f2eabb5d..02430ae9 100644 --- a/dhcpd/nclient4/client.go +++ b/dhcpd/nclient4/client.go @@ -374,6 +374,7 @@ func WithHWAddr(hwAddr net.HardwareAddr) ClientOpt { } } +// nolint func withBufferCap(n int) ClientOpt { return func(c *Client) (err error) { c.bufferCap = n