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

Method Contains

internal/waf/values/ip_range.go:125–136  ·  view source on GitHub ↗
(ip string)

Source from the content-addressed store, hash-verified

123}
124
125func (this *IPRangeList) Contains(ip string) bool {
126 var netIP = net.ParseIP(ip)
127 if netIP == nil {
128 return false
129 }
130 for _, r := range this.Ranges {
131 if r.Contains(netIP) {
132 return true
133 }
134 }
135 return false
136}

Callers

nothing calls this directly

Calls 2

ParseIPMethod · 0.80
ContainsMethod · 0.45

Tested by

no test coverage detected