1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-10 09:50:43 +00: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,
filepath.Join("/usr/local/share/v2ray/", file),
filepath.Join("/usr/share/v2ray/", file),
filepath.Join("/opt/share/v2ray/", file),
} {
if _, err := os.Stat(p); os.IsNotExist(err) {
continue