We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffce564 commit 9ca529bCopy full SHA for 9ca529b
pkg/cmd/remoteaccess/connect/ssh/ssh.manual.go
@@ -107,6 +107,11 @@ func NewCmdSSH(f *cmdutil.Factory) *CmdSSH {
107
func (n *CmdSSH) GetPortForwarding() string {
108
// convenience functions to mirror docker port mapping options
109
portMapping := n.portForwarding
110
+
111
+ if portMapping == "" {
112
+ return portMapping
113
+ }
114
115
portForwardingParts := strings.Split(portMapping, ":")
116
switch len(portForwardingParts) {
117
case 1:
0 commit comments