mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-13 20:44:43 +08:00
apply saved config on start up
This commit is contained in:
@@ -52,10 +52,10 @@ func Daemon() error {
|
|||||||
cfg.Network = network
|
cfg.Network = network
|
||||||
cfg.ReadConfig()
|
cfg.ReadConfig()
|
||||||
serverSet[cfg.Server.Server] = cfg
|
serverSet[cfg.Server.Server] = cfg
|
||||||
//temporary code --- remove in version v0.13.0
|
if err := wireguard.ApplyConf(&cfg.Node, cfg.Node.Interface, ncutils.GetNetclientPathSpecific()+cfg.Node.Interface+".conf"); err != nil {
|
||||||
removeHostDNS(network, ncutils.IsWindows())
|
logger.Log(0, "failed to start ", cfg.Node.Interface, "wg interface", err.Error())
|
||||||
// end of code to be removed in version v0.13.0
|
}
|
||||||
initialPull(cfg.Network)
|
go initialPull(cfg.Network)
|
||||||
}
|
}
|
||||||
|
|
||||||
// == subscribe to all nodes for each on machine ==
|
// == subscribe to all nodes for each on machine ==
|
||||||
|
Reference in New Issue
Block a user