Преглед на файлове

Add /opt to assets location (#715)

Kid преди 4 години
родител
ревизия
d2a4e6bc47
променени са 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/v2ray/", file),
 		filepath.Join("/usr/share/v2ray/", file),
+		filepath.Join("/opt/share/v2ray/", file),
 	} {
 		if _, err := os.Stat(p); os.IsNotExist(err) {
 			continue