From d2a4e6bc47907bdda2afcd8dcc52b7fbe0614821 Mon Sep 17 00:00:00 2001 From: Kid <44045911+kidonng@users.noreply.github.com> Date: Sat, 27 Feb 2021 17:09:48 +0800 Subject: [PATCH] Add /opt to assets location (#715) --- common/platform/others.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/platform/others.go b/common/platform/others.go index e526f498d..2d3ea9491 100644 --- a/common/platform/others.go +++ b/common/platform/others.go @@ -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