- fix linter

This commit is contained in:
Simon Zolin 2020-08-25 17:44:30 +03:00
parent 704291e88d
commit 9634ef9c03

View File

@ -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,