feat: add whitelist support
This commit is contained in:
1 parent
25dcf536c6
commit
77a8f28edc
4 files changed
+23
-1
No files matched your search
@@ -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()
|
||||
}
|
||||
Reference in new issue
Block a user