Set the correct algorithm when setting up rndc https://github.com/webmin/webmin/issues/1817

This commit is contained in:
Jamie Cameron
2023-01-11 19:08:06 -08:00
parent 6451f4b115
commit 43bf4bbc15

View File

@@ -35,7 +35,8 @@ if ($options) {
$port = &find_value("default-port", $options->{'members'});
}
$port ||= 953;
my $algorithm = &find("algorithm", $rconf);
my $algorithm = &find_value("algorithm", $rkey->{'members'}) ||
&find_value("algorithm", $rconf);
$algorithm ||= "hmac-md5";
# Add the key to named.conf