fix(tunnel): sync forwards to agents after tunnel update (#139)

Co-authored-by: Antigravity <antigravity@google.com>
This commit is contained in:
sagit
2026-02-18 19:48:09 +08:00
committed by GitHub
parent e7b777890e
commit 17f8a06704
@@ -696,6 +696,12 @@ func (h *Handler) tunnelUpdate(w http.ResponseWriter, r *http.Request) {
}
}
if forwards, fwdErr := h.listForwardsByTunnel(id); fwdErr == nil {
for i := range forwards {
_ = h.syncForwardServices(&forwards[i], "UpdateService", true)
}
}
response.WriteJSON(w, response.OKEmpty())
}