mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
allow normalized env name for asset location. fix #702
This commit is contained in:
parent
e88bea0ee6
commit
901d13ca76
@ -46,7 +46,8 @@ func NormalizeEnvName(name string) string {
|
||||
}
|
||||
|
||||
func GetAssetLocation(file string) string {
|
||||
assetPath := EnvFlag{Name: "v2ray.location.asset"}.GetValue(func() string {
|
||||
const name = "v2ray.location.asset"
|
||||
assetPath := EnvFlag{Name: name, AltName: NormalizeEnvName(name)}.GetValue(func() string {
|
||||
exec, err := os.Executable()
|
||||
if err != nil {
|
||||
return ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user