Skip to content

Commit

Permalink
fixing netclient logs
Browse files Browse the repository at this point in the history
  • Loading branch information
afeiszli committed Oct 20, 2021
1 parent 62b061f commit 7ae3559
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions netclient/functions/join.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 7ae3559

Please sign in to comment.