fea: list prefix route for system.

This commit is contained in:
Daniel Ding
2025-09-05 11:04:33 +08:00
parent db26f4881f
commit 19829f1c5a
17 changed files with 366 additions and 253 deletions

View File

@@ -138,7 +138,7 @@ func (h SNAT) Post(w http.ResponseWriter, r *http.Request) {
name := vars["id"]
if obj := Call.GetWorker(name); obj != nil {
obj.DoSnat()
obj.EnableSnat()
} else {
http.Error(w, name+" not found", http.StatusBadRequest)
return
@@ -152,7 +152,7 @@ func (h SNAT) Delete(w http.ResponseWriter, r *http.Request) {
name := vars["id"]
if obj := Call.GetWorker(name); obj != nil {
obj.UndoSnat()
obj.DisableSnat()
} else {
http.Error(w, name+" not found", http.StatusBadRequest)
return