Skip to content

feat: add switch http(s) button to error page #12942

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Apr 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lang
  • Loading branch information
f0ssel committed Apr 26, 2024
commit c97dc85a235fd8ed0f2494b14a19496a540bff44
2 changes: 1 addition & 1 deletion coderd/tailnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ func (s *ServerTailnet) ReverseProxy(targetURL, dashboardURL *url.URL, agentID u

desc := "Failed to proxy request to application: " + theErr.Error()
if strings.Contains(theErr.Error(), "tls:") {
desc = fmt.Sprintf("This error seems to be due to a protocol mistake, please try switching to %s. \n%s", switchProtoScheme, theErr.Error())
desc = fmt.Sprintf("This error seems to be due to a protocol mismatch, please try switching to %s. \n%s", switchProtoScheme, theErr.Error())
}

site.RenderStaticErrorPage(w, r, site.ErrorPageData{
Expand Down