aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/conf/store.go
diff options
context:
space:
mode:
Diffstat (limited to 'conf/store.go')
-rw-r--r--conf/store.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/conf/store.go b/conf/store.go
index def94836..af253046 100644
--- a/conf/store.go
+++ b/conf/store.go
@@ -14,8 +14,10 @@ import (
"golang.zx2c4.com/wireguard/windows/conf/dpapi"
)
-const configFileSuffix = ".conf.dpapi"
-const configFileUnencryptedSuffix = ".conf"
+const (
+ configFileSuffix = ".conf.dpapi"
+ configFileUnencryptedSuffix = ".conf"
+)
func ListConfigNames() ([]string, error) {
configFileDir, err := tunnelConfigurationsDirectory()
@@ -40,7 +42,7 @@ func ListConfigNames() ([]string, error) {
if err != nil {
continue
}
- if info.Mode().Perm()&0444 == 0 {
+ if info.Mode().Perm()&0o444 == 0 {
continue
}
configs[i] = name