mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-03 02:53:29 +08:00
route changes + primary addr on node
This commit is contained in:
@@ -188,10 +188,12 @@ func UpdatePeers(client mqtt.Client, msg mqtt.Message) {
|
||||
logger.Log(0, "error updating wireguard peers"+err.Error())
|
||||
return
|
||||
}
|
||||
queryAddr := cfg.Node.PrimaryAddress()
|
||||
|
||||
//err = wireguard.SyncWGQuickConf(cfg.Node.Interface, file)
|
||||
var iface = cfg.Node.Interface
|
||||
if ncutils.IsMac() {
|
||||
iface, err = local.GetMacIface(cfg.Node.Address)
|
||||
iface, err = local.GetMacIface(queryAddr)
|
||||
if err != nil {
|
||||
logger.Log(0, "error retrieving mac iface: "+err.Error())
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user