From 4812e662292a5013b6227b39f73ea59ea5f85293 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sat, 4 Feb 2017 00:27:16 +0100 Subject: [PATCH] fix stream settings check --- app/proxyman/outbound/handler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/proxyman/outbound/handler.go b/app/proxyman/outbound/handler.go index 365c9bee7..1fca0bc10 100644 --- a/app/proxyman/outbound/handler.go +++ b/app/proxyman/outbound/handler.go @@ -93,7 +93,8 @@ func (h *Handler) Dial(ctx context.Context, dest v2net.Destination) (internet.Co if h.senderSettings.Via != nil { ctx = internet.ContextWithDialerSource(ctx, h.senderSettings.Via.AsAddress()) } - if h.senderSettings != nil { + + if h.senderSettings.StreamSettings != nil { ctx = internet.ContextWithStreamSettings(ctx, h.senderSettings.StreamSettings) } }