Permalink
Browse files

Set scopemask for result during reply

  • Loading branch information...
1 parent 7736530 commit 4ca7a06ff95fbebdd984d4aa1d75ce7dffd0d97a @cmouse cmouse committed Sep 14, 2015
Showing with 1 addition and 0 deletions.
  1. +1 −0 modules/geoipbackend/geoipbackend.cc
@@ -248,6 +248,7 @@ void GeoIPBackend::lookup(const QType &qtype, const string &qdomain, DNSPacket *
map<DNSName, vector<DNSResourceRecord> >::iterator i = dom.records.find(format);
BOOST_FOREACH(DNSResourceRecord rr, i->second) {
if (qtype == QType::ANY || rr.qtype == qtype) {
+ rr.scopeMask = (v6 ? 128 : 32);
d_result.push_back(rr);
d_result.back().qname = qdomain;
}

0 comments on commit 4ca7a06

Please sign in to comment.