diff options
Diffstat (limited to 'netboot/netconf.go')
-rw-r--r-- | netboot/netconf.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/netboot/netconf.go b/netboot/netconf.go index 6f05e93..78ddff8 100644 --- a/netboot/netconf.go +++ b/netboot/netconf.go @@ -66,11 +66,9 @@ func GetNetConfFromPacketv6(d *dhcpv6.Message) (*NetConf, error) { } netconf.DNSServers = dns - opt := d.GetOneOption(dhcpv6.OptionDomainSearchList) - if opt != nil { - odomains := opt.(*dhcpv6.OptDomainSearchList) - // TODO should this be copied? - netconf.DNSSearchList = odomains.DomainSearchList.Labels + domains := d.Options.DomainSearchList() + if domains != nil { + netconf.DNSSearchList = domains.Labels } return &netconf, nil |