1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-18 03:29:12 -04:00

move proxy.Dialer to internet.Dialer

This commit is contained in:
Darien Raymond
2018-10-22 22:12:50 +02:00
parent 07a7597ee8
commit 17e51b277b
10 changed files with 28 additions and 31 deletions

View File

@@ -27,13 +27,7 @@ type Inbound interface {
// An Outbound process outbound connections.
type Outbound interface {
// Process processes the given connection. The given dialer may be used to dial a system outbound connection.
Process(context.Context, *vio.Link, Dialer) error
}
// Dialer is used by OutboundHandler for creating outbound connections.
type Dialer interface {
// Dial dials a system connection to the given destination.
Dial(ctx context.Context, destination net.Destination) (internet.Connection, error)
Process(context.Context, *vio.Link, internet.Dialer) error
}
// UserManager is the interface for Inbounds and Outbounds that can manage their users.