diff options
Diffstat (limited to 'dhcpv6/modifiers.go')
-rw-r--r-- | dhcpv6/modifiers.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/dhcpv6/modifiers.go b/dhcpv6/modifiers.go index 860071c..ee2056f 100644 --- a/dhcpv6/modifiers.go +++ b/dhcpv6/modifiers.go @@ -88,12 +88,7 @@ func WithIAID(iaid [4]byte) Modifier { // WithDNS adds or updates an OptDNSRecursiveNameServer func WithDNS(dnses ...net.IP) Modifier { - return func(d DHCPv6) { - odns := OptDNSRecursiveNameServer{ - NameServers: append([]net.IP{}, dnses[:]...), - } - d.UpdateOption(&odns) - } + return WithOption(OptDNS(dnses...)) } // WithDomainSearchList adds or updates an OptDomainSearchList |