mirror of https://github.com/v2ray/v2ray-core
bug fixes in outbound handler
parent
7f36a5d1d3
commit
6c45f593dd
|
@ -54,7 +54,7 @@ func NewHandler(ctx context.Context, config *proxyman.OutboundHandlerConfig) (*H
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
proxyHandler, err := config.GetProxyHandler(proxy.ContextWithDialer(ctx, h))
|
proxyHandler, err := config.GetProxyHandler(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,7 @@ func (h *Handler) Dial(ctx context.Context, dest v2net.Destination) (internet.Co
|
||||||
tag := h.senderSettings.ProxySettings.Tag
|
tag := h.senderSettings.ProxySettings.Tag
|
||||||
handler := h.outboundManager.GetHandler(tag)
|
handler := h.outboundManager.GetHandler(tag)
|
||||||
if handler != nil {
|
if handler != nil {
|
||||||
log.Info("Proxyman|OutboundHandler: Proxying to ", dest)
|
log.Info("Proxyman|OutboundHandler: Proxying to ", tag)
|
||||||
ctx = proxy.ContextWithDestination(ctx, dest)
|
ctx = proxy.ContextWithDestination(ctx, dest)
|
||||||
stream := ray.NewRay(ctx)
|
stream := ray.NewRay(ctx)
|
||||||
go handler.Dispatch(ctx, stream)
|
go handler.Dispatch(ctx, stream)
|
||||||
|
|
Loading…
Reference in New Issue