feat: add whitelist support

This commit is contained in:
Christian Groschupp committed 2024-04-16 21:06:14 +02:00
1 parent 25dcf536c6
commit 77a8f28edc
4 files changed
+23 -1

No files matched your search

+8
View File
@@ -37,3 +37,11 @@ func (w *bypassWrapper) Contains(ctx context.Context, network, addr string, opts
}
return bp.Contains(ctx, network, addr, opts...)
}
func (p *bypassWrapper) IsWhitelist() bool {
bp := p.r.get(p.name)
if bp == nil {
return false
}
return bp.IsWhitelist()
}