diff --git a/Makefile b/Makefile index 7e01c9ad..5a788b70 100644 --- a/Makefile +++ b/Makefile @@ -161,6 +161,7 @@ test: go test -race -v -bench=. -coverprofile=coverage.txt -covermode=atomic ./... ci: client_with_deps + $(MAKE) lint go mod download $(MAKE) test diff --git a/dhcpd/v4.go b/dhcpd/v4.go index d3e4839e..e820b0da 100644 --- a/dhcpd/v4.go +++ b/dhcpd/v4.go @@ -458,7 +458,7 @@ func (s *v4Server) processRequest(req *dhcpv4.DHCPv4, resp *dhcpv4.DHCPv4) (*Lea s.commitLease(lease) } else if len(lease.Hostname) != 0 { o := &optFQDN{ - name: string(lease.Hostname), + name: lease.Hostname, } fqdn := dhcpv4.Option{ Code: dhcpv4.OptionFQDN,