@@ -141,8 +141,10 @@ func createEgress(w http.ResponseWriter, r *http.Request) {
}
+ } else {
+ go mq.PublishPeerUpdate(false)
- go mq.PublishPeerUpdate(false)
+
logic.ReturnSuccessResponseWithJson(w, r, e, "created egress resource")
@@ -402,6 +402,7 @@ func hostUpdateFallback(w http.ResponseWriter, r *http.Request) {
e.Range = strings.Join(hostUpdate.Node.EgressGatewayRanges, ",")
e.Update(db.WithContext(r.Context()))
+ sendPeerUpdate = true
if sendPeerUpdate {