removed unneeded code

This commit is contained in:
2024-12-28 13:19:51 +09:00
parent 9d266180e9
commit a5bb59622e
4 changed files with 29 additions and 37 deletions

View File

@@ -51,6 +51,10 @@ type server_proxy_xterm_file struct {
file string
}
type server_proxy_http_wpx struct {
server_proxy
}
// ------------------------------------
//Copied from net/http/httputil/reverseproxy.go
@@ -482,6 +486,22 @@ oops:
// ------------------------------------
func (pxy *server_proxy_http_wpx) ServeHTTP(w http.ResponseWriter, req *http.Request) (int, error) {
var status_code int
var err error
status_code = http.StatusForbidden; w.WriteHeader(status_code)
// TODO: show the list of services running...
//done:
return status_code, nil
//oops:
return status_code, err
}
// ------------------------------------
type server_proxy_xterm_session_info struct {
ConnId string
RouteId string