MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / containsIP

Method containsIP

internal/waf/rule.go:803–808  ·  view source on GitHub ↗
(value any)

Source from the content-addressed store, hash-verified

801}
802
803func (this *Rule) containsIP(value any) bool {
804 if this.ipRangeListValue == nil {
805 return false
806 }
807 return this.ipRangeListValue.Contains(types.String(value))
808}
809
810func (this *Rule) ipToInt64(ip net.IP) int64 {
811 if len(ip) == 0 {

Callers 1

TestMethod · 0.95

Calls 2

ContainsMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected