chore(routing): remove redundant rule ip rule in error messages

This commit is contained in:
Quentin McGaw
2024-11-07 19:50:34 +00:00
parent 937c667ca8
commit 4ef0df04aa
5 changed files with 5 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ func (w *Wireguard) addRule(rulePriority int, firewallMark uint32,
rule.Table = int(firewallMark)
rule.Family = family
if err := w.netlink.RuleAdd(rule); err != nil {
return nil, fmt.Errorf("adding rule %s: %w", rule, err)
return nil, fmt.Errorf("adding %s: %w", rule, err)
}
cleanup = func() error {