moby/libnetwork/firewall_others.go
Sebastiaan van Stijn 9484520327
libnetwork: arrangeUserFilterRule: don't return early
commit ffd75c2e0c updated this function to
set up the DOCKER-USER chain for both iptables and ip6tables, however the
function would return early if a failure happened (instead of continuing
with the next iptables version).

This patch extracts setting up the chain to a separate function, and updates
arrangeUserFilterRule to log the failure as a warning, but continue with
the next iptables version.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-07-21 20:08:58 +02:00

7 lines
201 B
Go

//go:build !linux
package libnetwork
func setupArrangeUserFilterRule(c *Controller) {}
func arrangeUserFilterRule() {}
func setupUserChain(ipVersion any) error { return nil }