mirror of
https://github.com/safing/portmaster
synced 2025-09-04 19:49:15 +00:00
Fix multierror handling
This commit is contained in:
parent
7ccd0d13bc
commit
2643a90582
2 changed files with 3 additions and 3 deletions
|
@ -48,7 +48,7 @@ var recoverIPTablesCmd = &cobra.Command{
|
||||||
|
|
||||||
if filteredErrors != nil {
|
if filteredErrors != nil {
|
||||||
filteredErrors.ErrorFormat = formatNfqErrors
|
filteredErrors.ErrorFormat = formatNfqErrors
|
||||||
return filteredErrors
|
return filteredErrors.ErrorOrNil()
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
|
@ -153,7 +153,7 @@ func DeactivateNfqueueFirewall() error {
|
||||||
result = multierror.Append(result, err)
|
result = multierror.Append(result, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return result
|
return result.ErrorOrNil()
|
||||||
}
|
}
|
||||||
|
|
||||||
func activateIPTables(protocol iptables.Protocol, rules, once, chains []string) error {
|
func activateIPTables(protocol iptables.Protocol, rules, once, chains []string) error {
|
||||||
|
@ -223,7 +223,7 @@ func deactivateIPTables(protocol iptables.Protocol, rules, chains []string) erro
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return multierr
|
return multierr.ErrorOrNil()
|
||||||
}
|
}
|
||||||
|
|
||||||
// StartNfqueueInterception starts the nfqueue interception.
|
// StartNfqueueInterception starts the nfqueue interception.
|
||||||
|
|
Loading…
Add table
Reference in a new issue