chore: don't lookup process when Type==INNER

This commit is contained in:
wwqgtxx 2024-03-28 21:49:44 +08:00
parent 06b5121d9e
commit 367a287153

View File

@ -596,7 +596,7 @@ func match(metadata *C.Metadata) (C.Proxy, C.Rule, error) {
defer configMux.RUnlock() defer configMux.RUnlock()
var ( var (
resolved bool resolved bool
attemptProcessLookup = true attemptProcessLookup = metadata.Type != C.INNER
) )
if node, ok := resolver.DefaultHosts.Search(metadata.Host, false); ok { if node, ok := resolver.DefaultHosts.Search(metadata.Host, false); ok {