mirror of
https://github.com/go-gost/gost.git
synced 2026-10-11 05:25:45 +00:00
add kcp dialer
This commit is contained in:
@@ -30,3 +30,15 @@ func DialFuncDialOption(dialf func(ctx context.Context, addr string) (net.Conn,
|
||||
opts.DialFunc = dialf
|
||||
}
|
||||
}
|
||||
|
||||
type HandshakeOptions struct {
|
||||
Addr string
|
||||
}
|
||||
|
||||
type HandshakeOption func(opts *HandshakeOptions)
|
||||
|
||||
func AddrHandshakeOption(addr string) HandshakeOption {
|
||||
return func(opts *HandshakeOptions) {
|
||||
opts.Addr = addr
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user