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],