Explorar o código

include network on extcient dns update

Matthew R Kasun %!s(int64=2) %!d(string=hai) anos
pai
achega
574583b3b1
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      mq/publishers.go

+ 2 - 2
mq/publishers.go

@@ -316,8 +316,8 @@ func PublishExtCLientDNS(client *models.ExtClient) error {
 func PublishExtClientDNSUpdate(old, new models.ExtClient, network string) error {
 	dns := models.DNSUpdate{
 		Action:  models.DNSReplaceName,
-		Name:    old.ClientID,
-		NewName: new.ClientID,
+		Name:    old.ClientID + "." + old.Network,
+		NewName: new.ClientID + "." + new.Network,
 	}
 	if err := PublishDNSUpdate(network, dns); err != nil {
 		return err