1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-12 07:19:01 -05:00

Add /opt to assets location (#715)

This commit is contained in:
Kid 2021-02-27 17:09:48 +08:00 committed by GitHub
parent 9fd5cdd8a8
commit d2a4e6bc47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,7 @@ func GetAssetLocation(file string) string {
defPath, defPath,
filepath.Join("/usr/local/share/v2ray/", file), filepath.Join("/usr/local/share/v2ray/", file),
filepath.Join("/usr/share/v2ray/", file), filepath.Join("/usr/share/v2ray/", file),
filepath.Join("/opt/share/v2ray/", file),
} { } {
if _, err := os.Stat(p); os.IsNotExist(err) { if _, err := os.Stat(p); os.IsNotExist(err) {
continue continue