merged xterm.html and xterm-pts.html

made relevant code changes oin the server side as well
This commit is contained in:
2025-06-22 13:11:25 +09:00
parent 7835696166
commit d092540f08
9 changed files with 107 additions and 339 deletions

View File

@ -458,11 +458,6 @@ func (pxy *server_pxy_http_wpx) ServeHTTP(w http.ResponseWriter, req *http.Reque
}
// ------------------------------------
type server_pxy_xterm_session_info struct {
ConnId string
RouteId string
}
func (pxy *server_pxy_xterm_file) ServeHTTP(w http.ResponseWriter, req *http.Request) (int, error) {
var s *Server
var status_code int
@ -516,7 +511,8 @@ func (pxy *server_pxy_xterm_file) ServeHTTP(w http.ResponseWriter, req *http.Req
} else {
status_code = WriteHtmlRespHeader(w, http.StatusOK)
tmpl.Execute(w,
&server_pxy_xterm_session_info{
&xterm_session_info{
Mode: "ssh",
ConnId: conn_id,
RouteId: route_id,
})