feat: show current best exit state

This commit is contained in:
sagitchu
2026-05-01 13:30:46 +08:00
parent d98377a297
commit e5acc49186
5 changed files with 806 additions and 30 deletions
@@ -842,6 +842,7 @@ func (h *Handler) tunnelGet(w http.ResponseWriter, r *http.Request) {
response.WriteJSON(w, response.Err(-2, err.Error()))
return
}
h.attachBestExitStates(items)
for _, it := range items {
if asInt64(it["id"], 0) == id {
response.WriteJSON(w, response.OK(it))