mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-16 12:52:22 +08:00
Fix unix search path
This commit is contained in:
parent
f87baf08d3
commit
236c034c62
|
@ -1,4 +1,4 @@
|
||||||
//go:build unix
|
//go:build unix || linux
|
||||||
|
|
||||||
package constant
|
package constant
|
||||||
|
|
||||||
|
@ -7,9 +7,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
resourcePaths = append(resourcePaths, "/etc/config")
|
resourcePaths = append(resourcePaths, "/etc")
|
||||||
resourcePaths = append(resourcePaths, "/usr/share")
|
resourcePaths = append(resourcePaths, "/usr/share")
|
||||||
resourcePaths = append(resourcePaths, "/usr/local/etc/config")
|
resourcePaths = append(resourcePaths, "/usr/local/etc")
|
||||||
resourcePaths = append(resourcePaths, "/usr/local/share")
|
resourcePaths = append(resourcePaths, "/usr/local/share")
|
||||||
if homeDir := os.Getenv("HOME"); homeDir != "" {
|
if homeDir := os.Getenv("HOME"); homeDir != "" {
|
||||||
resourcePaths = append(resourcePaths, homeDir+"/.local/share")
|
resourcePaths = append(resourcePaths, homeDir+"/.local/share")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user