Skip to content

Commit 717ed21

Browse files
committed
refactor(gateway,pkg,ssh): change v2 tunnel route to a more meaning name
1 parent c8e2212 commit 717ed21

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

agent/agent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ func (a *Agent) listenV2(ctx context.Context) error {
485485
return
486486
}
487487

488-
ShellHubConnectV2Path := "/connection"
488+
ShellHubConnectV2Path := "/agent/connection"
489489

490490
logger.Debug("Using tunnel version 2")
491491

gateway/nginx/conf.d/shellhub.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ server {
389389
proxy_redirect off;
390390
}
391391

392-
location /connection {
392+
location /agent/connection {
393393
set $upstream ssh:8080;
394394

395395
auth_request /auth;

ssh/http/handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const (
3838
// HandleConnectionV2Path is the connection endpoint where agents using yamux/multistream connects to
3939
// establish a WebSocket connection. Subsequent logical streams are opened without additional HTTP
4040
// handshakes and are protocol-negotiated via multistream-select.
41-
HandleConnectionV2Path = "/connection"
41+
HandleConnectionV2Path = "/agent/connection"
4242
)
4343

4444
const (

0 commit comments

Comments
 (0)