MCPcopy
hub / github.com/evilsocket/opensnitch / listMatch

Method listMatch

daemon/rule/operator.go:327–333  ·  view source on GitHub ↗
(con interface{}, hasChecksums bool)

Source from the content-addressed store, hash-verified

325}
326
327func (o *Operator) listMatch(con interface{}, hasChecksums bool) bool {
328 res := true
329 for i := 0; i < len(o.List); i++ {
330 res = res && o.List[i].Match(con.(*conman.Connection), hasChecksums)
331 }
332 return res
333}
334
335// Match tries to match parts of a connection with the given operator.
336func (o *Operator) Match(con *conman.Connection, hasChecksums bool) bool {

Callers 1

MatchMethod · 0.95

Calls 1

MatchMethod · 0.45

Tested by

no test coverage detected