]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix the consistency check for the balancing factors
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 4 Dec 2024 14:29:45 +0000 (15:29 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 4 Dec 2024 14:29:45 +0000 (15:29 +0100)
commitf2ff6e9fa81deced9d4e76d22456dc0925b3c527
treeb2c74c04c873283334e72494fd0785a8793a47e1
parent34ce59c2574bde9d5117996d8f1d4f9f9c8ff380
dnsdist: Fix the consistency check for the balancing factors

Zero is the initial value, but until now it was only possible to pass a value greater than or equal to 1.0 to `setWeightedBalancingFactor()` so it was not possible to reset it to the default value.
pdns/dnsdistdist/dnsdist-lua.cc
regression-tests.dnsdist/test_Routing.py