mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-02-26 16:57:08 +00:00
chore: change the separator of the SAFE_PATHS environment variable to the default separator of the operating system platform (i.e., ; in Windows and : in other systems)
This commit is contained in:
@@ -38,7 +38,7 @@ var Path = func() *path {
|
||||
}
|
||||
|
||||
var safePaths []string
|
||||
for _, safePath := range strings.Split(os.Getenv("SAFE_PATHS"), ":") {
|
||||
for _, safePath := range filepath.SplitList(os.Getenv("SAFE_PATHS")) {
|
||||
safePath = strings.TrimSpace(safePath)
|
||||
if len(safePath) == 0 {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user