From 4f12eba9448be3e406f42a9500d0b4e10f590b71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 13 Jun 2023 21:41:33 +0800 Subject: [PATCH] Fix hysteria outbound --- outbound/hysteria.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/outbound/hysteria.go b/outbound/hysteria.go index 26352a40..abe301b2 100644 --- a/outbound/hysteria.go +++ b/outbound/hysteria.go @@ -267,12 +267,14 @@ func (h *Hysteria) open(ctx context.Context, reconnect bool) (quic.Connection, q if nErr, ok := err.(net.Error); ok && !nErr.Temporary() && reconnect { return h.open(ctx, false) } + return nil, nil, err } stream, err := conn.OpenStream() if err != nil { if nErr, ok := err.(net.Error); ok && !nErr.Temporary() && reconnect { return h.open(ctx, false) } + return nil, nil, err } return conn, &hysteria.StreamWrapper{Stream: stream}, nil }