luci-mod-system: sshkeys.js: do not incorrectly filter ecdsa keys on load
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit a3ea891b7e
)
This commit is contained in:
parent
ccd7dd5236
commit
640f26238c
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ return L.view.extend({
|
||||||
load: function() {
|
load: function() {
|
||||||
return fs.lines('/etc/dropbear/authorized_keys').then(function(lines) {
|
return fs.lines('/etc/dropbear/authorized_keys').then(function(lines) {
|
||||||
return lines.filter(function(line) {
|
return lines.filter(function(line) {
|
||||||
return line.match(/^ssh-/) != null;
|
return line.match(/^(ssh-rsa|ssh-dss|ssh-ed25519|ecdsa-sha2)\b/) != null;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue