Parcourir la source

Add /opt to assets location (#715)

Kid il y a 4 ans
Parent
commit
d2a4e6bc47
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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/v2ray/", file),
 		filepath.Join("/usr/share/v2ray/", file),
+		filepath.Join("/opt/share/v2ray/", file),
 	} {
 		if _, err := os.Stat(p); os.IsNotExist(err) {
 			continue