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

Function SetSignatureBypassStrictMode

internal/cache/signature_cache.go:325–335  ·  view source on GitHub ↗

SetSignatureBypassStrictMode controls whether bypass mode uses strict protobuf-tree validation.

(strict bool)

Source from the content-addressed store, hash-verified

323
324// SetSignatureBypassStrictMode controls whether bypass mode uses strict protobuf-tree validation.
325func SetSignatureBypassStrictMode(strict bool) {
326 previous := signatureBypassStrictMode.Swap(strict)
327 if previous == strict {
328 return
329 }
330 if strict {
331 log.Debug("antigravity bypass signature validation: strict mode (protobuf tree)")
332 } else {
333 log.Debug("antigravity bypass signature validation: basic mode (R/E + 0x12)")
334 }
335}
336
337// SignatureBypassStrictMode returns whether bypass mode uses strict protobuf-tree validation.
338func SignatureBypassStrictMode() bool {

Calls 1

SwapMethod · 0.80