MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / DoConfig

Method DoConfig

internal/nodeapi/api.go:86–88  ·  view source on GitHub ↗

DoConfig 返回当前生效的 xray 配置 JSON 字符串(包装在 {"config":...})。

()

Source from the content-addressed store, hash-verified

84
85// DoConfig 返回当前生效的 xray 配置 JSON 字符串(包装在 {"config":...})。
86func (a *API) DoConfig() map[string]any {
87return map[string]any{"config": a.activeManager().Config()}
88}
89
90// DoLogs 返回缓冲区内的历史日志行。
91func (a *API) DoLogs() map[string]any {

Callers 2

HandleMethod · 0.80
ConfigHasherFunction · 0.80

Calls 2

activeManagerMethod · 0.95
ConfigMethod · 0.65

Tested by

no test coverage detected