mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
fix: invalid --v2ray-assetsdir. #649
This commit is contained in:
1 parent
246f7b30af
commit
71a231e543
1 file changed
+9
@@ -20,6 +20,15 @@ import (
|
||||
)
|
||||
|
||||
func GetV2rayLocationAssetOverride() string {
|
||||
if assetDir := conf.GetEnvironmentConfig().V2rayAssetsDirectory; assetDir != "" {
|
||||
return assetDir
|
||||
}
|
||||
if assetDir := os.Getenv("V2RAY_LOCATION_ASSET"); assetDir != "" {
|
||||
return assetDir
|
||||
}
|
||||
if assetDir := os.Getenv("XRAY_LOCATION_ASSET"); assetDir != "" {
|
||||
return assetDir
|
||||
}
|
||||
if runtime.GOOS != "windows" {
|
||||
return filepath.Join(xdg.RuntimeDir, "v2raya")
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user