Explorar o código

Add /opt to assets location (#715)

Kid %!s(int64=4) %!d(string=hai) anos
pai
achega
d2a4e6bc47
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/v2ray/", file),
 		filepath.Join("/usr/share/v2ray/", file),
+		filepath.Join("/opt/share/v2ray/", file),
 	} {
 		if _, err := os.Stat(p); os.IsNotExist(err) {
 			continue