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

Function Detect

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

Detect scans the current system for supported proxy clients and returns one Client entry for each found install. Order is not stable.

()

Source from the content-addressed store, hash-verified

39// Detect scans the current system for supported proxy clients and returns
40// one Client entry for each found install. Order is not stable.
41func Detect() []Client {
42 var out []Client
43 if c, ok := detectXray(); ok {
44 out = append(out, c)
45 }
46 if c, ok := detectV2ray(); ok {
47 out = append(out, c)
48 }
49 if c, ok := detectSingBox(); ok {
50 out = append(out, c)
51 }
52 return out
53}
54
55// -- xray / v2ray (JSON config, same shape) --------------------------------
56

Callers 1

runWizardFunction · 0.92

Calls 3

detectXrayFunction · 0.85
detectV2rayFunction · 0.85
detectSingBoxFunction · 0.85

Tested by

no test coverage detected