Fix error handling

This commit is contained in:
Zoltán Papp
2025-01-24 16:08:00 +01:00
parent 00b8f6ad8e
commit 20bce65ab2

View File

@@ -40,6 +40,7 @@ func (h *Manager) Update(forwardRules []firewallManager.ForwardRule) error {
rule, err := h.firewallManager.AddDNATRule(rule)
if err != nil {
mErr = multierror.Append(mErr, fmt.Errorf("failed to add forward rule '%s': %v", rule, err))
continue
}
h.fwRules[id] = rule
}