MCPcopy Create free account
hub / github.com/SamNet-dev/snix / singBoxConfigPaths

Function singBoxConfigPaths

integrate/integrate.go:275–288  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

273}
274
275func singBoxConfigPaths() []string {
276 home, _ := os.UserHomeDir()
277 if runtime.GOOS == "windows" {
278 app := os.Getenv("APPDATA")
279 return []string{
280 filepath.Join(app, "sing-box", "config.json"),
281 }
282 }
283 return []string{
284 "/etc/sing-box/config.json",
285 "/usr/local/etc/sing-box/config.json",
286 filepath.Join(home, ".config", "sing-box", "config.json"),
287 }
288}

Callers 1

detectSingBoxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected