From b00b6b9e256700fc55ceae7147f0efee39d734c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sun, 25 Sep 2022 14:42:39 +0800 Subject: [PATCH] Fix fqdn socks5 outbound connection --- outbound/socks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/outbound/socks.go b/outbound/socks.go index 61318c33..50b1f7c1 100644 --- a/outbound/socks.go +++ b/outbound/socks.go @@ -74,7 +74,7 @@ func (h *Socks) DialContext(ctx context.Context, network string, destination M.S default: return nil, E.Extend(N.ErrUnknownNetwork, network) } - if destination.IsFqdn() { + if h.resolve && destination.IsFqdn() { addrs, err := h.router.LookupDefault(ctx, destination.Fqdn) if err != nil { return nil, err