mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-10 17:48:25 +08:00
include network on extcient dns update
This commit is contained in:
parent
543c2e9c91
commit
574583b3b1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue