Quellcode durchsuchen

fix stream settings check

Darien Raymond vor 8 Jahren
Ursprung
Commit
4812e66229
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  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)
 		}
 	}