some code touch-up

This commit is contained in:
2025-01-14 14:09:52 +09:00
parent 22542537bf
commit ea56287eb4
3 changed files with 34 additions and 40 deletions

View File

@ -286,16 +286,7 @@ func (ctl *server_ctl_server_conns_id_routes_id) ServeHTTP(w http.ResponseWriter
// currenly, this is invoked via wpx only for ssh from xterm.html
// ugly, but hard-code the type to "ssh" here for now...
pi, err = ctl.s.wpx_foreign_port_proxy_maker("ssh", conn_id)
if err == nil {
// fake route
r = &ServerRoute{
SvcOption: pi.SvcOption,
PtcName: pi.PtcName,
PtcAddr: pi.PtcAddr,
SvcAddr: pi.SvcAddr,
SvcPermNet: pi.SvcPermNet,
}
}
if err == nil { r = proxy_info_to_server_route(pi) } // fake route
}
if err != nil {