sdwan: add hub node selection and auto fallback to mesh

This commit is contained in:
2026-03-05 22:03:26 +08:00
parent 5fe5c76375
commit e96a2e5dd9
5 changed files with 60 additions and 5 deletions

View File

@@ -343,6 +343,10 @@ func main() {
http.Error(w, err.Error(), http.StatusBadRequest)
return
}
if req.Mode == "hub" && req.HubNode == "" {
http.Error(w, "hub mode requires hubNode", http.StatusBadRequest)
return
}
// tenant filter by session/apikey
tenantID := getTenantID(r)
if tenantID > 0 {