From 4c5e2c6645eb86ae1d367e5967277b4eee03862f Mon Sep 17 00:00:00 2001 From: Sergei Maklagin Date: Sun, 2 Nov 2025 17:59:12 +0300 Subject: [PATCH] Remove direct detour checking --- common/dialer/detour.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/common/dialer/detour.go b/common/dialer/detour.go index 5c0b552b..01da8356 100644 --- a/common/dialer/detour.go +++ b/common/dialer/detour.go @@ -52,14 +52,6 @@ func (d *DetourDialer) init() { d.initErr = E.New("outbound detour not found: ", d.detour) return } - if !d.legacyDNSDialer { - if directDialer, isDirect := dialer.(DirectDialer); isDirect { - if directDialer.IsEmpty() { - d.initErr = E.New("detour to an empty direct outbound makes no sense") - return - } - } - } d.dialer = dialer }