MCPcopy Create free account
hub / github.com/PasarGuard/node / XrayEnv

Function XrayEnv

backend/xray/process_unix_test.go:164–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162}
163
164func XrayEnv() []string {
165 env := []string{}
166
167 assets := os.Getenv("XRAY_ASSETS_PATH")
168 if assets == "" {
169 if _, err := os.Stat("/usr/local/share/xray"); err == nil {
170 assets = "/usr/local/share/xray"
171 }
172 }
173
174 if assets != "" {
175 env = append(env, "XRAY_LOCATION_ASSET="+assets)
176 }
177
178 return env
179}
180
181func waitForProcesses(exe string, children []struct {
182 pid int

Callers 1

startXrayProcessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected