]> granicus.if.org Git - pdns/commit
add ProbaRule to dnsdist: match with given probability
authorbert hubert <bert.hubert@netherlabs.nl>
Tue, 19 Sep 2017 20:22:57 +0000 (22:22 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Tue, 19 Sep 2017 20:22:57 +0000 (22:22 +0200)
commitd382600664f43323ca155ca955c001d741a52d43
treec3f81e063974c933728b58fdab11cef8aea3ab91
parent916d19cf315183ac770ec77be94381a15d89dca6
add ProbaRule to dnsdist: match with given probability

This adds a ProbaRule, ProbaRule(1.0) means 'match always', 0.1 '10%'. Useful for TeeAction.
pdns/dnsdist-lua.cc
pdns/dnsdistdist/dnsrulactions.cc
pdns/dnsdistdist/docs/rules-actions.rst
pdns/dnsrulactions.hh