fixing mac stuff and dns testing

This commit is contained in:
afeiszli
2022-02-07 11:30:15 -05:00
committed by 0xdcarns
parent dd3780c18d
commit 96535554f5
11 changed files with 159 additions and 100 deletions

View File

@@ -110,7 +110,14 @@ func CheckIn(cfg config.ClientConfig) error {
}
err = functions.CheckConfig(*currConf)
if err != nil {
ncutils.PrintLog("error checking in for "+network+" network: "+err.Error(), 1)
if strings.Contains(err.Error(), "could not find iface") {
err = Pull(cfg)
if err != nil {
ncutils.PrintLog(err.Error(), 1)
}
} else {
ncutils.PrintLog("error checking in for "+network+" network: "+err.Error(), 1)
}
} else {
ncutils.PrintLog("checked in successfully for "+network, 1)
}