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

Method SetConfig

internal/watcher/watcher.go:137–142  ·  view source on GitHub ↗

SetConfig updates the current configuration

(cfg *config.Config)

Source from the content-addressed store, hash-verified

135
136// SetConfig updates the current configuration
137func (w *Watcher) SetConfig(cfg *config.Config) {
138 w.clientsMutex.Lock()
139 defer w.clientsMutex.Unlock()
140 w.config = cfg
141 w.oldConfigYaml, _ = yaml.Marshal(cfg)
142}
143
144// SetPluginAuthParser updates the plugin auth parser used for file auth synthesis.
145func (w *Watcher) SetPluginAuthParser(parser synthesizer.PluginAuthParser) {

Calls

no outgoing calls