]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Add DomainInfo.masters in BindBackend2::getAllDomains()
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 11 Oct 2017 10:16:41 +0000 (12:16 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 11 Oct 2017 10:24:02 +0000 (12:24 +0200)
Closes #5807

modules/bindbackend/bindbackend2.cc

index a68a7a93a550f95bb4319a2ffa46668d1d432b2e..d7f9966044c22d680a90c1ec9a0153ef87a8346c 100644 (file)
@@ -353,6 +353,7 @@ void Bind2Backend::getAllDomains(vector<DomainInfo> *domains, bool include_disab
       di.zone=i->d_name;
       di.last_check=i->d_lastcheck;
       di.kind=i->d_masters.empty() ? DomainInfo::Master : DomainInfo::Slave; //TODO: what about Native?
+      di.masters=i->d_masters;
       di.backend=this;
       domains->push_back(di);
     };