Skip to content

Commit

Permalink
style: fixed multi ports
Browse files Browse the repository at this point in the history
  • Loading branch information
yunlzheng committed May 12, 2020
1 parent 793f1be commit d24e959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kt/connect/inbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d24e959

Please sign in to comment.