瀏覽代碼

fix stream settings check

Darien Raymond 8 年之前
父節點
當前提交
4812e66229
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/proxyman/outbound/handler.go

+ 2 - 1
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)
 		}
 	}