소스 검색

fix: default env empty

vcptr 6 년 전
부모
커밋
78b95d4bc2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
 }