mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 08:47:35 +08:00
call UpdateDNS on node update if DNSOn
This commit is contained in:
@@ -424,9 +424,9 @@ func UpdateWgInterface(file, privateKey, nameserver string, node models.Node) er
|
||||
if node.Address6 != "" {
|
||||
wireguard.Section(section_interface).Key("Address").SetValue(node.Address6)
|
||||
}
|
||||
if node.DNSOn == "yes" {
|
||||
wireguard.Section(section_interface).Key("DNS").SetValue(nameserver)
|
||||
}
|
||||
//if node.DNSOn == "yes" {
|
||||
// wireguard.Section(section_interface).Key("DNS").SetValue(nameserver)
|
||||
//}
|
||||
if node.PostUp != "" {
|
||||
wireguard.Section(section_interface).Key("PostUp").SetValue(node.PostUp)
|
||||
}
|
||||
|
Reference in New Issue
Block a user