From de3c7ff37ea6849207fb83fcc56a474f16ae7ad2 Mon Sep 17 00:00:00 2001 From: Shtorm <108103062+shtorm-7@users.noreply.github.com> Date: Fri, 4 Sep 2026 04:42:43 +0300 Subject: [PATCH] naive: wait for handshake before returning outbound conn --- protocol/naive/outbound.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/naive/outbound.go b/protocol/naive/outbound.go index c6bd44ee..f4990ad6 100644 --- a/protocol/naive/outbound.go +++ b/protocol/naive/outbound.go @@ -237,7 +237,7 @@ func (h *Outbound) DialContext(ctx context.Context, network string, destination switch N.NetworkName(network) { case N.NetworkTCP: h.logger.InfoContext(ctx, "outbound connection to ", destination) - return h.client.DialEarly(ctx, destination) + return h.client.DialContext(ctx, network, destination) case N.NetworkUDP: if h.uotClient == nil { return nil, E.New("UDP is not supported unless UDP over TCP is enabled") @@ -273,5 +273,5 @@ type naiveDialer struct { } func (d *naiveDialer) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error) { - return d.NaiveClient.DialEarly(ctx, destination) + return d.NaiveClient.DialContext(ctx, network, destination) }