diff options
author | Chris Koch <chrisko@google.com> | 2019-12-28 07:12:19 -0800 |
---|---|---|
committer | insomniac <insomniacslk@users.noreply.github.com> | 2020-03-05 15:51:55 +0000 |
commit | 26ec6ccc1813d21a91bc0227ce36dee3531c5c96 (patch) | |
tree | 0697fef1a7ee2b32b7a4a602a4904cb0e18e72c8 /dhcpv6/modifiers.go | |
parent | 69252213a65449f6984b24e912979876723ce066 (diff) |
v6: add DNS getter (and rename DNSRecursiveNameServer to DNS)
Signed-off-by: Chris Koch <chrisko@google.com>
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 |