summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/dhcpv6message.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6/dhcpv6message.go')
-rw-r--r--dhcpv6/dhcpv6message.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/dhcpv6/dhcpv6message.go b/dhcpv6/dhcpv6message.go
index 8886c6c..45fa5f1 100644
--- a/dhcpv6/dhcpv6message.go
+++ b/dhcpv6/dhcpv6message.go
@@ -169,8 +169,8 @@ func (mo MessageOptions) BootFileURL() string {
if opt == nil {
return ""
}
- if u, ok := opt.(optBootFileURL); ok {
- return string(u)
+ if u, ok := opt.(*optBootFileURL); ok {
+ return u.url
}
return ""
}
@@ -181,8 +181,8 @@ func (mo MessageOptions) BootFileParam() []string {
if opt == nil {
return nil
}
- if u, ok := opt.(optBootFileParam); ok {
- return []string(u)
+ if u, ok := opt.(*optBootFileParam); ok {
+ return u.params
}
return nil
}