MCPcopy Create free account
hub / github.com/SenseUnit/dumbproxy / NewDstAddrFilter

Function NewDstAddrFilter

access/dst.go:25–30  ·  view source on GitHub ↗
(prefixes []netip.Prefix, next Filter)

Source from the content-addressed store, hash-verified

23}
24
25func NewDstAddrFilter(prefixes []netip.Prefix, next Filter) DstAddrFilter {
26 return DstAddrFilter{
27 pfxList: prefixes,
28 next: next,
29 }
30}
31
32func (f DstAddrFilter) Access(ctx context.Context, req *http.Request, username, network, address string) error {
33 addrport, err := netip.ParseAddrPort(address)

Callers 1

runFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected