diff options
-rw-r--r-- | netboot/netconf.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netboot/netconf.go b/netboot/netconf.go index f8488fb..a9751dd 100644 --- a/netboot/netconf.go +++ b/netboot/netconf.go @@ -38,7 +38,7 @@ func GetNetConfFromPacketv6(d *dhcpv6.DHCPv6Message) (*NetConf, error) { // get IP configuration oiana := opt.(*dhcpv6.OptIANA) iaaddrs := make([]*dhcpv6.OptIAAddress, 0) - for _, o := range oiana.Options() { + for _, o := range oiana.Options { if o.Code() == dhcpv6.OPTION_IAADDR { iaaddrs = append(iaaddrs, o.(*dhcpv6.OptIAAddress)) } |