mirror of
https://github.com/coder/coder.git
synced 2025-07-18 14:17:22 +00:00
refactor(agent): Move SSH server into agentssh package (#7004)
Refs: #6177
This commit is contained in:
committed by
GitHub
parent
3ff2ae1b1a
commit
0224426e5b
@ -14,7 +14,7 @@ import (
|
||||
"github.com/pion/udp"
|
||||
"golang.org/x/xerrors"
|
||||
|
||||
"github.com/coder/coder/agent"
|
||||
"github.com/coder/coder/agent/agentssh"
|
||||
"github.com/coder/coder/cli/clibase"
|
||||
"github.com/coder/coder/cli/cliui"
|
||||
"github.com/coder/coder/codersdk"
|
||||
@ -226,7 +226,7 @@ func listenAndPortForward(ctx context.Context, inv *clibase.Invocation, conn *co
|
||||
}
|
||||
defer remoteConn.Close()
|
||||
|
||||
agent.Bicopy(ctx, netConn, remoteConn)
|
||||
agentssh.Bicopy(ctx, netConn, remoteConn)
|
||||
}(netConn)
|
||||
}
|
||||
}(spec)
|
||||
|
Reference in New Issue
Block a user