added more code to support foreign ports for the wpx endpoint

This commit is contained in:
2025-01-12 17:30:13 +09:00
parent 3a2ea68614
commit 9d30a0efea
4 changed files with 70 additions and 24 deletions

View File

@ -3,7 +3,7 @@ package hodu
import "encoding/json"
import "fmt"
import "net/http"
import "net/url"
//import "net/url"
import "runtime"
import "strconv"
import "strings"
@ -159,13 +159,13 @@ func (ctl *client_ctl_client_conns) ServeHTTP(w http.ResponseWriter, req *http.R
case http.MethodGet:
var cts *ClientConn
var js []json_out_client_conn
var q url.Values
// var q url.Values
q = req.URL.Query()
// q = req.URL.Query()
// TODO: brief listing vs full listing
if q.Get("brief") == "true" {
}
// if q.Get("brief") == "true" {
// }
js = make([]json_out_client_conn, 0)
c.cts_mtx.Lock()