summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system/htdocs/luci-static
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-11-13 16:55:28 +0100
committerJo-Philipp Wich <jo@mein.io>2019-11-13 16:55:28 +0100
commita3ea891b7e6352f7f723276ef08c1fc40754bdc4 (patch)
tree732fefb3062c74732ab24b7f44976b9ca0748c4d /modules/luci-mod-system/htdocs/luci-static
parent07e5fcbb1e5b2b1380f4a8b8bf8e67576ff81978 (diff)
luci-mod-system: sshkeys.js: do not incorrectly filter ecdsa keys on load
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-system/htdocs/luci-static')
-rw-r--r--modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js
index 8b9673ae1..ce3bac961 100644
--- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js
+++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js
@@ -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;
});
});
},