summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6
diff options
context:
space:
mode:
authorAndrea Barberio <insomniac@slackware.it>2018-04-20 10:12:38 +0000
committerAndrea Barberio <insomniac@slackware.it>2018-04-20 10:12:38 +0000
commitdaac3acf5f7a80e7a2c538ac0edd274109a3237c (patch)
treeec5bf8b3256438fd854e1d2ff0ebc77a53a77700 /dhcpv6
parent640d78837b3c44975dc2ae2abdc3aabc4003c87f (diff)
WithUserClass using the passed user class now
Diffstat (limited to 'dhcpv6')
-rw-r--r--dhcpv6/modifiers.go4
1 files changed, 2 insertions, 2 deletions
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
}