Revert "libnet/d/bridge: port mappings: filter by input iface"

This reverts commit 433b1f9b17.

Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This commit is contained in:
Albin Kerouanton
2025-01-20 13:49:13 +01:00
parent 6160aeb6e2
commit fc7caf96d2
12 changed files with 28 additions and 516 deletions

View File

@@ -9,7 +9,6 @@ import (
"os"
"os/exec"
"path/filepath"
"strconv"
"strings"
runcoptions "github.com/containerd/containerd/api/types/runc/options"
@@ -160,12 +159,6 @@ func (daemon *Daemon) fillPlatformInfo(ctx context.Context, v *system.Info, sysI
if !v.IPv4Forwarding {
v.Warnings = append(v.Warnings, "WARNING: IPv4 forwarding is disabled")
}
if filtering, _ := strconv.ParseBool(os.Getenv("DOCKER_DISABLE_INPUT_IFACE_FILTERING")); filtering {
v.Warnings = append(v.Warnings,
"WARNING: input interface filtering is disabled on port mappings, this might be insecure",
"DEPRECATED: DOCKER_DISABLE_INPUT_IFACE_FILTERING is deprecated and will be removed in a future release",
)
}
return nil
}