mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-06-19 17:29:54 -04:00
add env variable for config file
This commit is contained in:
@@ -70,3 +70,9 @@ func GetPluginDirectory() string {
|
||||
pluginDir := EnvFlag{Name: name, AltName: NormalizeEnvName(name)}.GetValue(getExecuableSubDir("plugins"))
|
||||
return pluginDir
|
||||
}
|
||||
|
||||
func GetConfigurationPath() string {
|
||||
const name = "v2ray.location.config"
|
||||
configPath := EnvFlag{Name: name, AltName: NormalizeEnvName(name)}.GetValue(getExecutableDir)
|
||||
return filepath.Join(configPath, "config.json")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user