Skip to content

Commit

Permalink
add addthrow error
Browse files Browse the repository at this point in the history
Signed-off-by: walnuts1018 <r.juglans.1018@gmail.com>
  • Loading branch information
walnuts1018 committed Aug 29, 2024
1 parent f911e66 commit 87e8e5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/nat/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ func (c *natClient) UpdateRoutes(link netlink.Link, subnets []netip.Prefix) erro
for _, v := range slices.Concat(v4PrivateList, v6PrivateList,
[]netip.Prefix{v4LinkLocal, v6LinkLocal},
) {
c.addThrow(link, v)
if err := c.addThrow(link, v); err != nil {
return err
}
}

for _, r := range adds {
Expand Down

0 comments on commit 87e8e5b

Please sign in to comment.