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) }