use dns entry in wireguard config file; checkin temporarily disabled til figure issue with dns on checkin

This commit is contained in:
Matthew R Kasun
2021-12-31 16:04:25 +00:00
parent 4ef0b164d7
commit 45464c00f5
4 changed files with 9 additions and 3 deletions

View File

@@ -83,9 +83,9 @@ func JoinNetwork(cfg config.ClientConfig, privateKey string) error {
}
}
if ncutils.IsLinux() {
_, err := exec.LookPath("resolvectl")
_, err := exec.LookPath("resolveconf")
if err != nil {
ncutils.PrintLog("resolvectl not present", 2)
ncutils.PrintLog("resolveconf not present", 2)
ncutils.PrintLog("unable to configure DNS automatically, disabling automated DNS management", 2)
cfg.Node.DNSOn = "no"
}