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

Function applySignatureCacheConfig

internal/api/server.go:1810–1828  ·  view source on GitHub ↗
(oldCfg, cfg *config.Config)

Source from the content-addressed store, hash-verified

1808}
1809
1810func applySignatureCacheConfig(oldCfg, cfg *config.Config) {
1811 newVal := configuredSignatureCacheEnabled(cfg)
1812 newStrict := configuredSignatureBypassStrict(cfg)
1813 if oldCfg == nil {
1814 cache.SetSignatureCacheEnabled(newVal)
1815 cache.SetSignatureBypassStrictMode(newStrict)
1816 return
1817 }
1818
1819 oldVal := configuredSignatureCacheEnabled(oldCfg)
1820 if oldVal != newVal {
1821 cache.SetSignatureCacheEnabled(newVal)
1822 }
1823
1824 oldStrict := configuredSignatureBypassStrict(oldCfg)
1825 if oldStrict != newStrict {
1826 cache.SetSignatureBypassStrictMode(newStrict)
1827 }
1828}
1829
1830func configuredSignatureBypassStrict(cfg *config.Config) bool {
1831 if cfg != nil && cfg.AntigravitySignatureBypassStrict != nil {

Callers 2

NewServerFunction · 0.85
UpdateClientsMethod · 0.85

Tested by

no test coverage detected