Skip to content

Commit

Permalink
Ignore TLS certificate as we are on localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
jggoebel committed Sep 17, 2024
1 parent f3d22d3 commit cd04bba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions v3/pkg/shell/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package shell

import (
"context"
"crypto/tls"
"encoding/json"
"fmt"
"io"
Expand Down Expand Up @@ -317,6 +318,7 @@ func (sp ShellProxy) proxy(w http.ResponseWriter, r *http.Request, user *userpb.
proxy.Transport = &http.Transport{
Dial: sshConn.Dial,
TLSHandshakeTimeout: 10 * time.Second,
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
//r.RequestURI = ""
r.Header.Set("X-Forwarded-Host", r.Header.Get("Host"))
Expand Down

0 comments on commit cd04bba

Please sign in to comment.