else {
uint16_t port;
try {
- port = lexical_cast<uint16_t>(::arg()["remote-port"]);
+ port = lexical_cast<uint16_t>(::arg()["remote-port"]);
}
catch(...) {
- cerr<<"Unable to convert '"<<::arg()["remote-port"]<<"' to a port number for connecting to remote PowerDNS\n";
- exit(99);
+ cerr<<"Unable to convert '"<<::arg()["remote-port"]<<"' to a port number for connecting to remote PowerDNS\n";
+ exit(99);
}
D=shared_ptr<DynMessenger>(new DynMessenger(ComboAddress(::arg()["remote-address"], port), ::arg()["secret"]));
string message;
for(vector<string>::const_iterator i=commands.begin();i!=commands.end();++i) {
if(i!=commands.begin())
- message+=" ";
+ message+=" ";
message+=*i;
}
if(command=="show") {
message="SHOW ";
for(unsigned int n=1;n<commands.size();n++) {
- message+=commands[n];
- message+=" ";
+ message+=commands[n];
+ message+=" ";
}
}
else if(command=="list") {