diff options
Diffstat (limited to 'dhcpv6/modifiers.go')
-rw-r--r-- | dhcpv6/modifiers.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dhcpv6/modifiers.go b/dhcpv6/modifiers.go index 75ebfb0..08745bc 100644 --- a/dhcpv6/modifiers.go +++ b/dhcpv6/modifiers.go @@ -26,8 +26,9 @@ func WithNetboot(d DHCPv6) DHCPv6 { // WithUserClass adds a user class option to the packet func WithUserClass(uc []byte) Modifier { + // TODO let the user specify multiple user classes return func(d DHCPv6) DHCPv6 { - ouc := OptUserClass{UserClass: uc} + ouc := OptUserClass{UserClasses: [][]byte{uc}} d.AddOption(&ouc) return d } |