From 73c7d7ec8255fbcb6ce265159dcf76ee506d6b5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 31 Mar 2026 17:21:06 +0800 Subject: [PATCH] adapter: remove unused DestinationAddressesForMatch --- adapter/inbound.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/adapter/inbound.go b/adapter/inbound.go index 5f6804aca..28147e917 100644 --- a/adapter/inbound.go +++ b/adapter/inbound.go @@ -118,13 +118,6 @@ func (c *InboundContext) ResetRuleMatchCache() { c.DidMatch = false } -func (c *InboundContext) DestinationAddressesForMatch() []netip.Addr { - if c.DestinationAddressMatchFromResponse { - return DNSResponseAddresses(c.DNSResponse) - } - return c.DestinationAddresses -} - func (c *InboundContext) DNSResponseAddressesForMatch() []netip.Addr { return DNSResponseAddresses(c.DNSResponse) }