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:
Jo-Philipp Wich 2019-11-13 16:55:28 +01:00
parent ccd7dd5236
commit 640f26238c

View file

@ -217,7 +217,7 @@ return L.view.extend({
load: function() {
return fs.lines('/etc/dropbear/authorized_keys').then(function(lines) {
return lines.filter(function(line) {
return line.match(/^ssh-/) != null;
return line.match(/^(ssh-rsa|ssh-dss|ssh-ed25519|ecdsa-sha2)\b/) != null;
});
});
},