Browse Source

Add /opt to assets location (#312)

Kid 4 years ago
parent
commit
8aabbeefe1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      common/platform/others.go

+ 1 - 0
common/platform/others.go

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