From d24e95962f4c80200412d7a3427394c275ad8d33 Mon Sep 17 00:00:00 2001 From: yunlzheng Date: Tue, 12 May 2020 19:38:32 +0800 Subject: [PATCH] style: fixed multi ports --- pkg/kt/connect/inbound.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kt/connect/inbound.go b/pkg/kt/connect/inbound.go index bbea391f..34b640c1 100644 --- a/pkg/kt/connect/inbound.go +++ b/pkg/kt/connect/inbound.go @@ -69,7 +69,7 @@ func inbound( log.Info().Msgf("redirect request from pod %s 22 to 127.0.0.1:%d starting\n", remoteIP, localSSHPort) // supports multi port pairs - portPairs := strings.SplitN(exposePorts, ",", 2) + portPairs := strings.Split(exposePorts, ",") for _, exposePort := range portPairs { localPort := exposePort remotePort := exposePort