diff options
Diffstat (limited to 'dhcpv6/dhcpv6relay.go')
-rw-r--r-- | dhcpv6/dhcpv6relay.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dhcpv6/dhcpv6relay.go b/dhcpv6/dhcpv6relay.go index 0ccdf72..68f3cf0 100644 --- a/dhcpv6/dhcpv6relay.go +++ b/dhcpv6/dhcpv6relay.go @@ -127,9 +127,11 @@ func (r *DHCPv6Relay) UpdateOption(option Option) { if opt.Code() == option.Code() { r.options[idx] = option // don't look further - break + return } } + // if not found, add it + r.AddOption(option) } func (r *DHCPv6Relay) IsRelay() bool { |