fixing dns and various logs

This commit is contained in:
afeiszli
2022-02-05 14:26:19 -05:00
parent 4815c4da13
commit 8566332ad9
11 changed files with 76 additions and 43 deletions

View File

@@ -126,6 +126,6 @@ func StorePrivKey(key string, network string) error {
// RetrievePrivKey - reads wg priv key from local disk
func RetrievePrivKey(network string) (string, error) {
dat, err := os.ReadFile(ncutils.GetNetclientPathSpecific() + "wgkey-" + network)
dat, err := ncutils.GetFileWithRetry(ncutils.GetNetclientPathSpecific()+"wgkey-"+network, 2)
return string(dat), err
}