]> git.ipfire.org Git - thirdparty/pdns.git/commit - pdns/dnsdist-lua.cc
dnsdist: Add an optional `status` parameter to `setAuto()` 5625/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 18 Aug 2017 09:17:50 +0000 (11:17 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 18 Aug 2017 09:17:50 +0000 (11:17 +0200)
commitd92708edcb5eeaa5806230a8a752eacda236c9d6
tree32415b40163115b0223f8edfd4e58b209a796597
parent8f7a7e64efb37723a3b7da646cbac49d73e8352b
dnsdist: Add an optional `status` parameter to `setAuto()`

If the parameter is present, its value is used to set the initial
state of the DownstreamServer until a health check is performed,
instead of using the previous known state.
It's useful if one wants to restore the automatic status detection
but knows that the server is either currently down but was previously
up (queries sent until the health check is performed will be lost);
or currently up but was previously down, so it process queries immediately.
pdns/dnsdist-lua.cc
pdns/dnsdistdist/docs/reference/config.rst