luci-app-acme: fixed the issue where certificates were not displaying (#8151)

* luci-app-acme: fixed the issue where certificates were not displaying
This commit is contained in:
zhusir
2025-12-15 20:03:02 +08:00
committed by GitHub
parent adf9e685ec
commit 3b81fafa80

View File

@@ -12,7 +12,7 @@ return view.extend({
L.resolveDefault(fs.list('/etc/ssl/acme/'), []).then(files => { L.resolveDefault(fs.list('/etc/ssl/acme/'), []).then(files => {
let certs = []; let certs = [];
for (let f of files) { for (let f of files) {
if (f.type == 'file' && f.name.match(/\.fullchain\.crt$/)) { if (f.name.match(/\.fullchain\.crt$/)) {
certs.push(f); certs.push(f);
} }
} }