MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / GetDebug

Method GetDebug

internal/tui/client.go:340–351  ·  view source on GitHub ↗

GetDebug fetches the current debug setting.

()

Source from the content-addressed store, hash-verified

338
339// GetDebug fetches the current debug setting.
340func (c *Client) GetDebug() (bool, error) {
341 wrapper, err := c.getJSON("/v0/management/debug")
342 if err != nil {
343 return false, err
344 }
345 if v, ok := wrapper["debug"]; ok {
346 if b, ok := v.(bool); ok {
347 return b, nil
348 }
349 }
350 return false, nil
351}
352
353// GetAuthStatus polls the OAuth session status.
354// Returns status ("wait", "ok", "error") and optional error message.

Callers

nothing calls this directly

Calls 1

getJSONMethod · 0.95

Tested by

no test coverage detected