Skip to content

Commit

Permalink
fix: double forwarding bug
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Di Maio <[email protected]>
  • Loading branch information
89luca89 committed Oct 19, 2023
1 parent f371b9a commit 11ab0b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ func (cmd *SSHCmd) startTunnel(
}

// check if we should reverse forward ports
if len(cmd.ReverseForwardPorts) > 0 {
if len(cmd.ReverseForwardPorts) > 0 && !cmd.GPGAgentForwarding {
go func() {
err := cmd.reverseForwardPorts(ctx, containerClient, log)
if err != nil {
Expand Down

0 comments on commit 11ab0b0

Please sign in to comment.