include network on extcient dns update

This commit is contained in:
Matthew R Kasun 2023-02-08 13:50:34 -05:00
parent 543c2e9c91
commit 574583b3b1

View file

@ -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