Documentation ¶
Index ¶
- type ProtectedDialer
- func (d *ProtectedDialer) Dial(ctx context.Context, src v2net.Address, dest v2net.Destination, ...) (net.Conn, error)
- func (d *ProtectedDialer) IsVServerReady() bool
- func (d *ProtectedDialer) PrepareDomain(domainName string, closeCh <-chan struct{}, prefIPv6 bool)
- func (d *ProtectedDialer) PrepareResolveChan()
- func (d *ProtectedDialer) ResolveChan() <-chan struct{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProtectedDialer ¶
type ProtectedDialer struct {
// contains filtered or unexported fields
}
ProtectedDialer ...
func NewPreotectedDialer ¶
func NewPreotectedDialer(p protectSet) *ProtectedDialer
NewPreotectedDialer ...
func (*ProtectedDialer) Dial ¶
func (d *ProtectedDialer) Dial(ctx context.Context, src v2net.Address, dest v2net.Destination, sockopt *v2internet.SocketConfig) (net.Conn, error)
Dial exported as the protected dial method
func (*ProtectedDialer) IsVServerReady ¶
func (d *ProtectedDialer) IsVServerReady() bool
func (*ProtectedDialer) PrepareDomain ¶
func (d *ProtectedDialer) PrepareDomain(domainName string, closeCh <-chan struct{}, prefIPv6 bool)
PrepareDomain caches direct v2ray server host
func (*ProtectedDialer) PrepareResolveChan ¶
func (d *ProtectedDialer) PrepareResolveChan()
func (*ProtectedDialer) ResolveChan ¶
func (d *ProtectedDialer) ResolveChan() <-chan struct{}
Click to show internal directories.
Click to hide internal directories.