Skip to content

Commit 7a2f8dd

Browse files
committed
fix(tailnet): update WorkspaceAgentSSHPort to 22
Change-Id: Ifd986b260f8ac317e37d65111cd4e0bd1dc38af8 Signed-off-by: Thomas Kosiewski <tk@coder.com>
1 parent 38f9dfc commit 7a2f8dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tailnet/conn.go

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy