MCPcopy
hub / github.com/caddyserver/caddy / matches

Method matches

modules/caddytls/matchers.go:390–394  ·  view source on GitHub ↗
(ip netip.Addr, ranges []netip.Prefix)

Source from the content-addressed store, hash-verified

388}
389
390func (MatchRemoteIP) matches(ip netip.Addr, ranges []netip.Prefix) bool {
391 return slices.ContainsFunc(ranges, func(prefix netip.Prefix) bool {
392 return prefix.Contains(ip)
393 })
394}
395
396// UnmarshalCaddyfile sets up the MatchRemoteIP from Caddyfile tokens. Syntax:
397//

Callers 1

MatchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected