]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/dnsdist.hh
Merge pull request #6674 from rgacogne/dnsdist-clean-maxqpsip
[thirdparty/pdns.git] / pdns / dnsdist.hh
index d020d0b447510ff679b4de1d21ca5036c81bbd1a..52f7e36960706150eb6f4c825f536d235a3e78e8 100644 (file)
@@ -643,6 +643,9 @@ struct ServerPolicy
   string name;
   policyfunc_t policy;
   bool isLua;
+  std::string toString() const {
+    return string("ServerPolicy") + (isLua ? " (Lua)" : "") + " \"" + name + "\"";
+  }
 };
 
 struct ServerPool