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

Function appendPayloadRuleChanges

internal/watcher/diff/config_diff.go:339–344  ·  view source on GitHub ↗
(changes []string, section string, oldRules, newRules []config.PayloadRule)

Source from the content-addressed store, hash-verified

337}
338
339func appendPayloadRuleChanges(changes []string, section string, oldRules, newRules []config.PayloadRule) []string {
340 if reflect.DeepEqual(oldRules, newRules) {
341 return changes
342 }
343 return append(changes, fmt.Sprintf("payload.%s: updated (%d -> %d rules)", section, len(oldRules), len(newRules)))
344}
345
346func appendPayloadFilterRuleChanges(changes []string, section string, oldRules, newRules []config.PayloadFilterRule) []string {
347 if reflect.DeepEqual(oldRules, newRules) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected