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

Function v2rayConfigPaths

integrate/integrate.go:259–273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257}
258
259func v2rayConfigPaths() []string {
260 home, _ := os.UserHomeDir()
261 if runtime.GOOS == "windows" {
262 app := os.Getenv("APPDATA")
263 return []string{
264 filepath.Join(app, "v2ray", "config.json"),
265 filepath.Join(app, "v2rayN", "config.json"),
266 }
267 }
268 return []string{
269 "/etc/v2ray/config.json",
270 "/usr/local/etc/v2ray/config.json",
271 filepath.Join(home, ".config", "v2ray", "config.json"),
272 }
273}
274
275func singBoxConfigPaths() []string {
276 home, _ := os.UserHomeDir()

Callers 1

detectV2rayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected