]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
for create-slave-zone, actually look at subsequent arguments, and not keep on adding...
authorbert hubert <bert.hubert@netherlabs.nl>
Tue, 7 Mar 2017 22:44:28 +0000 (23:44 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Tue, 7 Nov 2017 20:25:19 +0000 (21:25 +0100)
(cherry picked from commit 215464424ca9183dad4eecf7d9605e41ffa3ef2c)

pdns/pdnsutil.cc

index 2361bee48077b10a0a84fcad0b35f7dfa95ca358..127e9cba927216f115d374a517b1a4f96da0ceb9 100644 (file)
@@ -1187,7 +1187,7 @@ int createSlaveZone(const vector<string>& cmds) {
   }
   vector<string> masters;
   for (unsigned i=2; i < cmds.size(); i++) {
-    ComboAddress master(cmds[2], 53);
+    ComboAddress master(cmds[i], 53);
     masters.push_back(master.toStringWithPort());
   }
   cerr<<"Creating slave zone '"<<zone<<"', with master(s) '"<<boost::join(masters, ",")<<"'"<<endl;