Преглед изворни кода

Add /opt to assets location (#312)

Kid пре 4 година
родитељ
комит
8aabbeefe1
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      common/platform/others.go

+ 1 - 0
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