mirror of
https://github.com/go-gost/gost.git
synced 2026-10-08 12:05:46 +00:00
add binder for connector
This commit is contained in:
@@ -20,3 +20,15 @@ type ConnectOptions struct {
|
||||
}
|
||||
|
||||
type ConnectOption func(opts *ConnectOptions)
|
||||
|
||||
type BindOptions struct {
|
||||
Mux bool
|
||||
}
|
||||
|
||||
type BindOption func(opts *BindOptions)
|
||||
|
||||
func MuxBindOption(mux bool) BindOption {
|
||||
return func(opts *BindOptions) {
|
||||
opts.Mux = mux
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user