mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-11 01:54:34 +08:00
fixing netclient logs
This commit is contained in:
parent
62b061fe17
commit
7ae3559c0b
1 changed files with 2 additions and 8 deletions
|
@ -82,20 +82,14 @@ func JoinNetwork(cfg config.ClientConfig, privateKey string) error {
|
|||
}
|
||||
}
|
||||
if ncutils.IsLinux() {
|
||||
log.Println("deleteme looking for resolvectl")
|
||||
path, err := exec.LookPath("resolvectl")
|
||||
_, err := exec.LookPath("resolvectl")
|
||||
if err != nil {
|
||||
log.Println("deleteme whoops its not there")
|
||||
ncutils.PrintLog("resolvectl not present",2)
|
||||
ncutils.PrintLog("unable to configure DNS automatically, disabling automated DNS management",2)
|
||||
cfg.Node.DNSOn = "no"
|
||||
} else {
|
||||
log.Println("nice we gucci")
|
||||
log.Println("path -->", path)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// differentiate between client/server here
|
||||
var node models.Node // fill this node with appropriate calls
|
||||
postnode := &models.Node{
|
||||
|
|
Loading…
Reference in a new issue