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

Function detectXray

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

-- xray / v2ray (JSON config, same shape) --------------------------------

()

Source from the content-addressed store, hash-verified

55// -- xray / v2ray (JSON config, same shape) --------------------------------
56
57func detectXray() (Client, bool) { return detectJSONProxy("xray", xrayConfigPaths()) }
58func detectV2ray() (Client, bool) { return detectJSONProxy("v2ray", v2rayConfigPaths()) }
59
60// detectJSONProxy looks for an executable on PATH and a config file in one

Callers 1

DetectFunction · 0.85

Calls 2

detectJSONProxyFunction · 0.85
xrayConfigPathsFunction · 0.85

Tested by

no test coverage detected