Skip to content

Commit

Permalink
fix(pro): forward ports for web IDE for local agent on runner
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbreuninger committed Dec 19, 2024
1 parent 7445be1 commit 9f05d2d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cmd/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,14 @@ func (cmd *SSHCmd) jumpLocalProxyContainer(ctx context.Context, devPodConfig *co
return err
}
defer containerClient.Close()
log.Info("Successfully connected to container")

if len(cmd.ForwardPorts) > 0 {
return cmd.forwardPorts(ctx, containerClient, log)
}

if len(cmd.ReverseForwardPorts) > 0 && !cmd.GPGAgentForwarding {
return cmd.reverseForwardPorts(ctx, containerClient, log)
}

go startSSHKeepAlive(ctx, containerClient, cmd.SSHKeepAliveInterval, log)

Expand Down

0 comments on commit 9f05d2d

Please sign in to comment.