mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Copy algorith from rndc config file https://sourceforge.net/p/webadmin/bugs/5487/
This commit is contained in:
@@ -33,6 +33,8 @@ if ($options) {
|
||||
$port = &find_value("default-port", $options->{'members'});
|
||||
}
|
||||
$port ||= 953;
|
||||
my $algorithm = &find("algorithm", $rconf);
|
||||
$algorithm ||= "hmac-md5";
|
||||
|
||||
# Add the key to named.conf
|
||||
&lock_file($cfile);
|
||||
@@ -49,7 +51,7 @@ if (!$key) {
|
||||
push(@keys, $key);
|
||||
}
|
||||
&save_directive($key, "algorithm", [ { 'name' => 'algorithm',
|
||||
'values' => [ "hmac-md5" ] } ], 1, 1);
|
||||
'values' => [ $algorithm ] } ], 1, 1);
|
||||
&save_directive($key, "secret", [ { 'name' => 'secret',
|
||||
'values' => [ $secret ] } ], 1, 1);
|
||||
&save_directive($parent, 'key', \@keys, 0);
|
||||
|
||||
Reference in New Issue
Block a user