From 3a9450bc06061bbc5813fb27951c6bd6b7e4d351 Mon Sep 17 00:00:00 2001 From: Irbe Krumina Date: Thu, 4 Jan 2024 12:17:15 +0000 Subject: [PATCH] cmd/containerboot: don't parse empty subnet routes (#10738) Updates#cleanup Signed-off-by: Irbe Krumina --- cmd/containerboot/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/containerboot/main.go b/cmd/containerboot/main.go index 0aac212c6..5f03f9745 100644 --- a/cmd/containerboot/main.go +++ b/cmd/containerboot/main.go @@ -756,7 +756,7 @@ func ensureIPForwarding(root, clusterProxyTarget, tailnetTargetiP, tailnetTarget if tailnetTargetFQDN != "" { v4Forwarding = true } - if routes != nil { + if routes != nil && *routes != "" { for _, route := range strings.Split(*routes, ",") { cidr, err := netip.ParsePrefix(route) if err != nil {