From 8aabbeefe1d078f383ff5cc531378b2085efde7f Mon Sep 17 00:00:00 2001 From: Kid <44045911+kidonng@users.noreply.github.com> Date: Sat, 27 Feb 2021 23:09:44 +0800 Subject: [PATCH] Add /opt to assets location (#312) --- common/platform/others.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/platform/others.go b/common/platform/others.go index efa8e0c8..1ad58848 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/xray/", file), filepath.Join("/usr/share/xray/", file), + filepath.Join("/opt/share/xray/", file), } { if _, err := os.Stat(p); os.IsNotExist(err) { continue