We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent38f9dfc commit7a2f8ddCopy full SHA for 7a2f8dd
tailnet/conn.go
@@ -49,7 +49,7 @@ import (
49
varErrConnClosed=xerrors.New("connection closed")
50
51
const (
52
-WorkspaceAgentSSHPort=1
+WorkspaceAgentSSHPort=22
53
WorkspaceAgentReconnectingPTYPort=2
54
WorkspaceAgentSpeedtestPort=3
55
)
@@ -745,7 +745,7 @@ func (c *Conn) forwardTCP(src, dst netip.AddrPort) (handler func(net.Conn), opts
745
returnnil,nil,false
746
}
747
// See: https://github.com/tailscale/tailscale/blob/c7cea825aea39a00aca71ea02bab7266afc03e7c/wgengine/netstack/netstack.go#L888
748
-ifdst.Port()==WorkspaceAgentSSHPort||dst.Port()==22{
+ifdst.Port()==WorkspaceAgentSSHPort {
749
opt:=tcpip.KeepaliveIdleOption(72*time.Hour)
750
opts=append(opts,&opt)
751