mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 13:14:05 +00:00
Add tunnelling to the proxy API handler.
This commit is contained in:
@@ -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 == "" {
|
||||
|
Reference in New Issue
Block a user