From a45108e08f1286da1b7ca7739c3a20c74a25a843 Mon Sep 17 00:00:00 2001 From: Laurence Date: Mon, 4 Mar 2024 18:21:00 +0000 Subject: [PATCH] wip: fix golang ci --- pkg/server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/server/server.go b/pkg/server/server.go index 33090cd..253645c 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -194,7 +194,7 @@ func toValidCIDR(ip string) string { } func getTrustedIPs(ips []string) ([]net.IPNet, error) { - trustedIPs := make([]net.IPNet, len(ips)) + trustedIPs := make([]net.IPNet, 0, len(ips)) for _, ip := range ips { cidr := toValidCIDR(ip)