This change allow an empty string to be returned to CHAOS version.bind
request. version-string by default is set to "full" through
pdns/auth-main.cc declareArguments(), however does not allow an empty
string to be returned as PowerDNS Recursor does.
// modes: full, powerdns only, anonymous or custom
const static string mode=::arg()["version-string"];
string content;
- if(mode.empty() || mode=="full")
+ if(mode=="full")
content=fullVersionString();
else if(mode=="powerdns")
content="Served by PowerDNS - https://www.powerdns.com/";