mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-06-07 11:44:56 +03:00
Add set_system_proxy for linux and android
This commit is contained in:
@@ -20,12 +20,18 @@ func FindPath(name string) (string, bool) {
|
||||
if path := filepath.Join(dir, dirName, name); rw.FileExists(path) {
|
||||
return path, true
|
||||
}
|
||||
if path := filepath.Join(dir, name); rw.FileExists(path) {
|
||||
return path, true
|
||||
}
|
||||
}
|
||||
return name, false
|
||||
}
|
||||
|
||||
func init() {
|
||||
resourcePaths = append(resourcePaths, ".")
|
||||
if home := os.Getenv("HOME"); home != "" {
|
||||
resourcePaths = append(resourcePaths, home)
|
||||
}
|
||||
if userConfigDir, err := os.UserConfigDir(); err == nil {
|
||||
resourcePaths = append(resourcePaths, userConfigDir)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user