aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/manager
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-01-29 01:48:06 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-02-01 16:55:02 +0100
commitfdf117deebe23b32bb4cdd4f84abb072dc4eb0cd (patch)
tree6ffa20f6a25e5f7ab76e2fbf49f2c08068587c92 /manager
parentconf: don't sleep before failure in dns resolution (diff)
downloadwireguard-windows-fdf117deebe23b32bb4cdd4f84abb072dc4eb0cd.tar.xz
wireguard-windows-fdf117deebe23b32bb4cdd4f84abb072dc4eb0cd.zip
global: move away from ioutil
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'manager')
-rw-r--r--manager/legacystore.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/manager/legacystore.go b/manager/legacystore.go
index 524861d2..4125cb86 100644
--- a/manager/legacystore.go
+++ b/manager/legacystore.go
@@ -7,8 +7,8 @@ package manager
import (
"fmt"
- "io/ioutil"
"log"
+ "os"
"path/filepath"
"regexp"
"strings"
@@ -26,7 +26,7 @@ func moveConfigsFromLegacyStore() {
return
}
oldC := filepath.Join(oldRoot, "WireGuard", "Configurations")
- files, err := ioutil.ReadDir(oldC)
+ files, err := os.ReadDir(oldC)
if err != nil {
return
}