From 5fe339a697979d463abe8a96283cb6d7b8ef08ef Mon Sep 17 00:00:00 2001 From: Mehdi <3422399+meeehdi-dev@users.noreply.github.com> Date: Mon, 16 Oct 2023 13:52:59 +0200 Subject: [PATCH] fix(client): use connect config port when creating the ssh tunnel (#2) --- pkg/client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/client/client.go b/pkg/client/client.go index 75f6ef6..0d26972 100644 --- a/pkg/client/client.go +++ b/pkg/client/client.go @@ -43,7 +43,7 @@ func (c *Client) Start(cfg ConnectConfig) error { cfg.Server, ssh.PublicKeys(c.signer), fmt.Sprintf("%s:%s", cfg.DestinationHost, cfg.DestinationPort), - "1234", + cfg.BindPort, ) c.tunnel = tunnel