Permalink
Browse files

read ALLOW-AXFR-FROM from the backend with the metadata

  • Loading branch information...
1 parent 7cbcd32 commit c57433638a5432632757c9ed08997c03f061f772 @mind04 mind04 committed with mind04 Nov 1, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 pdns/tcpreceiver.cc
View
@@ -428,7 +428,7 @@ bool TCPNameserver::canDoAXFR(shared_ptr<DNSPacket> q)
// cerr<<"got backend and SOA"<<endl;
DNSBackend *B=sd.db;
vector<string> acl;
- B->getDomainMetadata(q->qdomain, "ALLOW-AXFR-FROM", acl);
+ s_P->getBackend()->getDomainMetadata(q->qdomain, "ALLOW-AXFR-FROM", acl);
for (vector<string>::const_iterator i = acl.begin(); i != acl.end(); ++i) {
// cerr<<"matching against "<<*i<<endl;
if(pdns_iequals(*i, "AUTO-NS")) {

0 comments on commit c574336

Please sign in to comment.