From 6c45f593ddd2fccc72311a2b879260afe7ad27cc Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Thu, 26 Jan 2017 22:47:31 +0100 Subject: [PATCH] bug fixes in outbound handler --- app/proxyman/outbound/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/proxyman/outbound/handler.go b/app/proxyman/outbound/handler.go index 625d1c90..8ac73545 100644 --- a/app/proxyman/outbound/handler.go +++ b/app/proxyman/outbound/handler.go @@ -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 { return nil, err } @@ -74,7 +74,7 @@ func (h *Handler) Dial(ctx context.Context, dest v2net.Destination) (internet.Co tag := h.senderSettings.ProxySettings.Tag handler := h.outboundManager.GetHandler(tag) if handler != nil { - log.Info("Proxyman|OutboundHandler: Proxying to ", dest) + log.Info("Proxyman|OutboundHandler: Proxying to ", tag) ctx = proxy.ContextWithDestination(ctx, dest) stream := ray.NewRay(ctx) go handler.Dispatch(ctx, stream)