add network for bypass
This commit is contained in:
@ -7,6 +7,7 @@ import (
|
||||
)
|
||||
|
||||
type SelectOptions struct {
|
||||
Network string
|
||||
Addr string
|
||||
Host string
|
||||
Protocol string
|
||||
@ -14,6 +15,12 @@ type SelectOptions struct {
|
||||
|
||||
type SelectOption func(*SelectOptions)
|
||||
|
||||
func NetworkSelectOption(network string) SelectOption {
|
||||
return func(so *SelectOptions) {
|
||||
so.Network = network
|
||||
}
|
||||
}
|
||||
|
||||
func AddrSelectOption(addr string) SelectOption {
|
||||
return func(o *SelectOptions) {
|
||||
o.Addr = addr
|
||||
|
Reference in New Issue
Block a user