Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7a2f8dd

Browse files
committed
fix(tailnet): update WorkspaceAgentSSHPort to 22
Change-Id: Ifd986b260f8ac317e37d65111cd4e0bd1dc38af8Signed-off-by: Thomas Kosiewski <tk@coder.com>
1 parent38f9dfc commit7a2f8dd

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
varErrConnClosed=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
returnnil,nil,false
746746
}
747747
// See: https://github.com/tailscale/tailscale/blob/c7cea825aea39a00aca71ea02bab7266afc03e7c/wgengine/netstack/netstack.go#L888
748-
ifdst.Port()==WorkspaceAgentSSHPort||dst.Port()==22{
748+
ifdst.Port()==WorkspaceAgentSSHPort {
749749
opt:=tcpip.KeepaliveIdleOption(72*time.Hour)
750750
opts=append(opts,&opt)
751751
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp