mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-04-14 12:48:28 +10:00
adapter: remove unused DestinationAddressesForMatch
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user