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

Method WithLocalManagementPassword

sdk/cliproxy/builder.go:164–170  ·  view source on GitHub ↗

WithLocalManagementPassword configures a password that is only accepted from localhost management requests.

(password string)

Source from the content-addressed store, hash-verified

162
163// WithLocalManagementPassword configures a password that is only accepted from localhost management requests.
164func (b *Builder) WithLocalManagementPassword(password string) *Builder {
165 if password == "" {
166 return b
167 }
168 b.serverOptions = append(b.serverOptions, api.WithLocalManagementPassword(password))
169 return b
170}
171
172// WithPostAuthHook registers a hook to be called after an Auth record is created
173// but before it is persisted to storage.

Calls 1

Tested by

no test coverage detected