diff options
author | Pablo Mazzini <pmazzini@gmail.com> | 2020-03-09 17:27:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-09 17:27:45 +0000 |
commit | 00901efc824ad5efb860c98ae3cd2e50a3ba610d (patch) | |
tree | 8a9626b86dcadf6c206ffd613c99b45d21c714df /dhcpv6/modifiers.go | |
parent | 19ee83379cf483ab151dd1ad4e36d09483d6a223 (diff) | |
parent | 59c22a151d6899aedd143445953e5906b0d11574 (diff) |
Merge branch 'master' into feature/dhcp4-o-dhcp6
Diffstat (limited to 'dhcpv6/modifiers.go')
-rw-r--r-- | dhcpv6/modifiers.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv6/modifiers.go b/dhcpv6/modifiers.go index 549ec38..ffea9ed 100644 --- a/dhcpv6/modifiers.go +++ b/dhcpv6/modifiers.go @@ -63,7 +63,7 @@ func WithIANA(addrs ...OptIAAddress) Modifier { iana = &OptIANA{} } for _, addr := range addrs { - iana.AddOption(&addr) + iana.Options.Add(&addr) } msg.UpdateOption(iana) } @@ -77,7 +77,7 @@ func WithIAID(iaid [4]byte) Modifier { iana := msg.Options.OneIANA() if iana == nil { iana = &OptIANA{ - Options: Options{}, + Options: IdentityOptions{Options: []Option{}}, } } copy(iana.IaId[:], iaid[:]) |