mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-12 20:20:52 +08:00
fix dns issues on checkin when resolvconf not installed
This commit is contained in:
@@ -156,7 +156,7 @@ func Pull(network string, manual bool) (*models.Node, error) {
|
||||
}
|
||||
|
||||
node := cfg.Node
|
||||
servercfg := cfg.Server
|
||||
//servercfg := cfg.Server
|
||||
|
||||
if cfg.Node.IPForwarding == "yes" && !ncutils.IsWindows() {
|
||||
if err = local.SetIPForwarding(); err != nil {
|
||||
@@ -241,9 +241,9 @@ func Pull(network string, manual bool) (*models.Node, error) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if ncutils.IsLinux() {
|
||||
setDNS(&resNode, servercfg, &cfg.Node)
|
||||
}
|
||||
//if ncutils.IsLinux() {
|
||||
// setDNS(&resNode, servercfg, &cfg.Node)
|
||||
//}
|
||||
var bkupErr = config.SaveBackup(network)
|
||||
if bkupErr != nil {
|
||||
ncutils.Log("unable to update backup file")
|
||||
|
Reference in New Issue
Block a user