소스 검색

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