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

Function forceHomeRuntimeConfig

sdk/cliproxy/service.go:1406–1417  ·  view source on GitHub ↗
(cfg *config.Config)

Source from the content-addressed store, hash-verified

1404}
1405
1406func forceHomeRuntimeConfig(cfg *config.Config) {
1407 if cfg == nil {
1408 return
1409 }
1410 cfg.APIKeys = nil
1411 cfg.UsageStatisticsEnabled = true
1412 cfg.DisableCooling = true
1413 cfg.SaveCooldownStatus = false
1414 cfg.WebsocketAuth = false
1415 cfg.RemoteManagement.AllowRemote = false
1416 cfg.RemoteManagement.DisableControlPanel = true
1417}
1418
1419func (s *Service) applyHomeOverlay(remoteCfg *config.Config) {
1420 if errApply := s.applyHomeOverlayContext(context.Background(), remoteCfg); errApply != nil {

Callers 3

RunMethod · 0.85

Calls

no outgoing calls