1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-05-29 23:39:09 -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

@@ -87,7 +87,7 @@ func isValidAddress(addr *net.IPOrDomain) bool {
}
// Process implements proxy.Outbound.
func (h *Handler) Process(ctx context.Context, link *vio.Link, dialer proxy.Dialer) error {
func (h *Handler) Process(ctx context.Context, link *vio.Link, dialer internet.Dialer) error {
outbound := session.OutboundFromContext(ctx)
if outbound == nil || !outbound.Target.IsValid() {
return newError("target not specified.")