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

Function WithLocalManagementPassword

internal/api/server.go:124–128  ·  view source on GitHub ↗

WithLocalManagementPassword stores a runtime-only management password accepted for localhost requests.

(password string)

Source from the content-addressed store, hash-verified

122
123// WithLocalManagementPassword stores a runtime-only management password accepted for localhost requests.
124func WithLocalManagementPassword(password string) ServerOption {
125 return func(cfg *serverOptionConfig) {
126 cfg.localPassword = password
127 }
128}
129
130// WithKeepAliveEndpoint enables a keep-alive endpoint with the provided timeout and callback.
131func WithKeepAliveEndpoint(timeout time.Duration, onTimeout func()) ServerOption {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected