Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9355b33

Browse files
committed
fix(tailnet): update WorkspaceAgentSSHPort to 22
Change-Id: Ifd986b260f8ac317e37d65111cd4e0bd1dc38af8 Signed-off-by: Thomas Kosiewski <[email protected]>
1 parent cab51d9 commit 9355b33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tailnet/conn.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import (
4949
var ErrConnClosed = xerrors.New("connection closed")
5050

5151
const (
52-
WorkspaceAgentSSHPort = 1
52+
WorkspaceAgentSSHPort = 22
5353
WorkspaceAgentReconnectingPTYPort = 2
5454
WorkspaceAgentSpeedtestPort = 3
5555
)
@@ -745,7 +745,7 @@ func (c *Conn) forwardTCP(src, dst netip.AddrPort) (handler func(net.Conn), opts
745745
return nil, nil, false
746746
}
747747
// See: https://github.com/tailscale/tailscale/blob/c7cea825aea39a00aca71ea02bab7266afc03e7c/wgengine/netstack/netstack.go#L888
748-
if dst.Port() == WorkspaceAgentSSHPort || dst.Port() == 22 {
748+
if dst.Port() == WorkspaceAgentSSHPort {
749749
opt := tcpip.KeepaliveIdleOption(72 * time.Hour)
750750
opts = append(opts, &opt)
751751
}

0 commit comments

Comments
 (0)