mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-03 11:02:11 +08:00
extclient update
This commit is contained in:
@@ -497,10 +497,7 @@ func updateExtClient(w http.ResponseWriter, r *http.Request) {
|
||||
json.NewEncoder(w).Encode(newclient)
|
||||
if changedID {
|
||||
go func() {
|
||||
if err := mq.PublishDeleteExtClientDNS(&oldExtClient); err != nil {
|
||||
logger.Log(1, "error pubishing dns update for extcient update", err.Error())
|
||||
}
|
||||
if err := mq.PublishExtCLientDNS(&newExtClient); err != nil {
|
||||
if err := mq.PublishExtClientDNSUpdate(oldExtClient, newExtClient, networkName); err != nil {
|
||||
logger.Log(1, "error pubishing dns update for extcient update", err.Error())
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user