From daac3acf5f7a80e7a2c538ac0edd274109a3237c Mon Sep 17 00:00:00 2001 From: Andrea Barberio Date: Fri, 20 Apr 2018 10:12:38 +0000 Subject: WithUserClass using the passed user class now --- dhcpv6/modifiers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dhcpv6') diff --git a/dhcpv6/modifiers.go b/dhcpv6/modifiers.go index 2ad027b..75ebfb0 100644 --- a/dhcpv6/modifiers.go +++ b/dhcpv6/modifiers.go @@ -25,9 +25,9 @@ func WithNetboot(d DHCPv6) DHCPv6 { } // WithUserClass adds a user class option to the packet -func WithUserClass(uc string) Modifier { +func WithUserClass(uc []byte) Modifier { return func(d DHCPv6) DHCPv6 { - ouc := OptUserClass{UserClass: []byte("FbLoL")} + ouc := OptUserClass{UserClass: uc} d.AddOption(&ouc) return d } -- cgit v1.2.3