Explorar el Código

fix stream settings check

Darien Raymond hace 8 años
padre
commit
4812e66229
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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)
 		}
 	}