From 37a16e9487edb8ce34eb1407f17ee73211c136b4 Mon Sep 17 00:00:00 2001 From: freddygv Date: Tue, 26 Oct 2021 15:32:12 -0600 Subject: [PATCH] Replace Split with SplitN --- agent/proxycfg/snapshot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/proxycfg/snapshot.go b/agent/proxycfg/snapshot.go index 4345fda453..2a1965a8a1 100644 --- a/agent/proxycfg/snapshot.go +++ b/agent/proxycfg/snapshot.go @@ -68,7 +68,7 @@ func (k GatewayKey) IsEmpty() bool { } func gatewayKeyFromString(s string) GatewayKey { - split := strings.Split(s, ".") + split := strings.SplitN(s, ".", 2) return GatewayKey{ Partition: split[0], Datacenter: split[1],