Explorar o código

Add /opt to assets location (#312)

Kid %!s(int64=4) %!d(string=hai) anos
pai
achega
8aabbeefe1
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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