Explorar o código

fix: default env empty

vcptr %!s(int64=6) %!d(string=hai) anos
pai
achega
78b95d4bc2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      common/platform/platform.go

+ 1 - 1
common/platform/platform.go

@@ -86,6 +86,6 @@ func GetConfigurationPath() string {
 
 func GetConfDirPath() string {
 	const name = "v2ray.location.confdir"
-	configPath := NewEnvFlag(name).GetValue(getExecutableDir)
+	configPath := NewEnvFlag(name).GetValue(func() string { return "" })
 	return configPath
 }