]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Don't expose version number in User-Agent header 7490/head
authorPieter Lexis <pieter.lexis@powerdns.com>
Tue, 19 Feb 2019 11:18:01 +0000 (12:18 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Tue, 19 Feb 2019 11:18:01 +0000 (12:18 +0100)
docs/lua-records/functions.rst
pdns/lua-record.cc

index 7cbbe086bc0fe7e06d1150366d83909ca63e4e95..d180c76b5230121c603884c8c24baad117ede1e6 100644 (file)
@@ -69,7 +69,7 @@ Record creation functions
   - ``backupSelector``: used to pick the IP address from list of all candidates if all addresses are down. Choices include 'pickclosest', 'random', 'hashed', 'all' (default to 'random').
   - ``source``: Source IP address to check from
   - ``stringmatch``: check ``url`` for this string, only declare 'up' if found
-  - ``useragent``: Set the HTTP "User-Agent" header in the requests. By default it is set to "PowerDNS Authoritative Server/" plus the version number
+  - ``useragent``: Set the HTTP "User-Agent" header in the requests. By default it is set to "PowerDNS Authoritative Server"
 
   An example of IP address sets:
 
index ce0170bce81d6a7b8dac66ce27f37a25409c0475..cef57880230e12f3f3b338d3a76653ed582fdc69 100644 (file)
@@ -185,7 +185,7 @@ void IsUpOracle::checkURLThread(ComboAddress rem, std::string url, const opts_t&
   setDown(rem, url, opts);
   for(bool first=true;;first=false) {
     try {
-      string useragent = productName() + "/" + getPDNSVersion();
+      string useragent = productName();
       if (opts.count("useragent")) {
         useragent = opts.at("useragent");
       }