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

Commit504cd46

Browse files
authored
fix: Check for a response body when dialing the Tailnet WebSocket (#4327)
There was a panic in this code that caused it to fail on error!
1 parent8940ea1 commit504cd46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎codersdk/workspaceagents.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ func (c *Client) DialWorkspaceAgentTailnet(ctx context.Context, logger slog.Logg
387387
CompressionMode:websocket.CompressionDisabled,
388388
})
389389
ifisFirst {
390-
iferr!=nil&&res.StatusCode==http.StatusConflict {
390+
ifres!=nil&&res.StatusCode==http.StatusConflict {
391391
first<-readBodyAsError(res)
392392
return
393393
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp