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