mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-16 12:03:03 +00:00
Add /opt to assets location (#312)
This commit is contained in:
parent
48fab4d398
commit
8aabbeefe1
@ -30,6 +30,7 @@ func GetAssetLocation(file string) string {
|
|||||||
defPath,
|
defPath,
|
||||||
filepath.Join("/usr/local/share/xray/", file),
|
filepath.Join("/usr/local/share/xray/", file),
|
||||||
filepath.Join("/usr/share/xray/", file),
|
filepath.Join("/usr/share/xray/", file),
|
||||||
|
filepath.Join("/opt/share/xray/", file),
|
||||||
} {
|
} {
|
||||||
if _, err := os.Stat(p); os.IsNotExist(err) {
|
if _, err := os.Stat(p); os.IsNotExist(err) {
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user