From 034e15096fe8f2f5cc3cc35cbaac99119f79a9f9 Mon Sep 17 00:00:00 2001 From: NikitaSkrynnik Date: Thu, 15 Aug 2024 20:59:54 +1100 Subject: [PATCH] Revert changes in strToIPNet func Signed-off-by: NikitaSkrynnik --- pkg/api/networkservice/ipcontext_helpers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/api/networkservice/ipcontext_helpers.go b/pkg/api/networkservice/ipcontext_helpers.go index 617f659..fb9dad6 100644 --- a/pkg/api/networkservice/ipcontext_helpers.go +++ b/pkg/api/networkservice/ipcontext_helpers.go @@ -162,9 +162,10 @@ func strToIPNet(in string) *net.IPNet { if in == "" { return nil } - _, ipNet, err := net.ParseCIDR(in) + ip, ipNet, err := net.ParseCIDR(in) if err != nil { return nil } + ipNet.IP = ip return ipNet }