diff options
author | Andrea Barberio <insomniac@slackware.it> | 2018-05-01 23:25:29 +0100 |
---|---|---|
committer | Andrea Barberio <insomniac@slackware.it> | 2018-05-01 23:25:29 +0100 |
commit | 73ca529d3079e0704e2d3901d4ead1591f6ccf72 (patch) | |
tree | 3418cef5a1b6d5bb83eba9ff66932837269f730d /dhcpv6 | |
parent | 6f61775f9b154b44accc23bad31865510f253e58 (diff) |
Corrected variable name
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 } |