diff options
Diffstat (limited to 'dhcpv6')
-rw-r--r-- | dhcpv6/dhcpv6relay.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv6/dhcpv6relay.go b/dhcpv6/dhcpv6relay.go index 2deef5c..0ccdf72 100644 --- a/dhcpv6/dhcpv6relay.go +++ b/dhcpv6/dhcpv6relay.go @@ -123,9 +123,9 @@ func (r *DHCPv6Relay) AddOption(option Option) { // UpdateOption replaces the first option of the same type as the specified one. func (r *DHCPv6Relay) UpdateOption(option Option) { - for idx, opt := range d.options { + for idx, opt := range r.options { if opt.Code() == option.Code() { - d.options[idx] = option + r.options[idx] = option // don't look further break } |