⛄ Sync 2026-06-18 00:43:31

This commit is contained in:
github-actions[bot] committed 2026-06-18 00:43:31 +08:00
1 parent 0ec700ea8c
commit db4a5e64cf
20 files changed
+42 -18212

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-daede
PKG_VERSION:=1.13.0
PKG_RELEASE:=13
PKG_RELEASE:=14
PKG_MAINTAINER:=kenzok8
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
@@ -12,7 +12,13 @@ function deriveAirportName(value) {
if (name)
return name;
}
return url.hostname || '机场_1';
// Use the registrable label, not the whole hostname: sub.ssr.sh -> ssr.
// Dropping the TLD (and any sub.* prefix) keeps the default group name
// clean and avoids leaking the provider's full domain.
const labels = (url.hostname || '').split('.').filter(Boolean);
if (labels.length >= 2)
return labels[labels.length - 2];
return labels[0] || '机场_1';
} catch (e) {
return '机场_1';
}
@@ -140,6 +140,10 @@ function applyUciChanges() {
// uci.apply() resolves before its rollback-confirm RPC has finished.
// A second immediate apply is rejected, so wait for that confirmation.
return new Promise(function(resolve) { window.setTimeout(resolve, 1800); });
}).then(function() {
// refresh LuCI's header indicator so the just-committed changes stop
// showing as "Unsaved Changes".
return ui.changes.init();
});
}