Merge remote-tracking branch 'origin/master' into 6263-custom-ups-cache

This commit is contained in:
Dimitry Kolyshev
2023-11-22 09:49:32 +02:00
2 changed files with 6 additions and 0 deletions

View File

@@ -296,6 +296,10 @@ func (m *manager) ipsets(names []string) (sets []props, err error) {
return nil, fmt.Errorf("unknown ipset %q", n)
}
if p.family != netfilter.ProtoIPv4 && p.family != netfilter.ProtoIPv6 {
return nil, fmt.Errorf("%q unexpected ipset family %q", p.name, p.family)
}
sets = append(sets, p)
}