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

Function xrayConfigPaths

integrate/integrate.go:242–257  ·  view source on GitHub ↗

-- platform-specific config search paths --------------------------------

()

Source from the content-addressed store, hash-verified

240// -- platform-specific config search paths --------------------------------
241
242func xrayConfigPaths() []string {
243 home, _ := os.UserHomeDir()
244 if runtime.GOOS == "windows" {
245 app := os.Getenv("APPDATA")
246 return []string{
247 filepath.Join(app, "xray", "config.json"),
248 filepath.Join(app, "v2rayN", "xray_config.json"),
249 `C:\Program Files\xray\config.json`,
250 }
251 }
252 return []string{
253 "/etc/xray/config.json",
254 "/usr/local/etc/xray/config.json",
255 filepath.Join(home, ".config", "xray", "config.json"),
256 }
257}
258
259func v2rayConfigPaths() []string {
260 home, _ := os.UserHomeDir()

Callers 1

detectXrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected