]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: Use the incoming ECS for cache lookup if `use-incoming-edns-subnet` is set 5415/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 14 Jun 2017 11:31:18 +0000 (13:31 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 3 Jul 2017 10:07:40 +0000 (12:07 +0200)
commitc24288b8725a982f21443825afbc3f095c7ddf3c
tree61bf8d638f85a2e50e95c148ee201f73c138feab
parent06e3890473ec9e4a09389243f29d6e20ebdbc83f
rec: Use the incoming ECS for cache lookup if `use-incoming-edns-subnet` is set

Otherwise we insert into the cache based on the incoming ECS but
later do the lookup based on the query's source IP.

(cherry picked from commit 5736e55e0d2d8cd9a064b8377e87d08a540cb1b1)
pdns/pdns_recursor.cc
pdns/syncres.cc
pdns/syncres.hh