mirror of https://github.com/k3s-io/k3s
Add tunnelling to the proxy API handler.
parent
82afaaf31d
commit
631cf34d40
|
@ -119,6 +119,9 @@ func (r *ProxyHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
|||
httpCode = http.StatusNotFound
|
||||
return
|
||||
}
|
||||
// TODO: make this dynamic
|
||||
location.Host = "localhost"
|
||||
location.Scheme = "http"
|
||||
|
||||
// Default to http
|
||||
if location.Scheme == "" {
|
||||
|
|
Loading…
Reference in New Issue