diff --git a/bypass/bypass.go b/bypass/bypass.go index e7b99e2..5f9612d 100644 --- a/bypass/bypass.go +++ b/bypass/bypass.go @@ -4,6 +4,7 @@ import "context" type Options struct { Host string + Path string } type Option func(opts *Options) @@ -14,6 +15,12 @@ func WithHostOpton(host string) Option { } } +func WithPathOption(path string) Option { + return func(opts *Options) { + opts.Path = path + } +} + // Bypass is a filter of address (IP or domain). type Bypass interface { // Contains reports whether the bypass includes addr.