💋 Sync 2026-10-11 00:16:14
Merge-upstream / merge (push) Canceled after 0s

This commit is contained in:
github-actions[bot] committed 2026-10-11 00:16:14 +08:00
1 parent c7bafc635d
commit c71da84035
264 files changed
+8169 -3944

No files matched your search

+3 -11
View File
@@ -6,7 +6,6 @@ let config = {
require_wan: '1',
refresh_interval_s: '28800',
boot_start_delay_s: '30',
license_key: 'abcd1234wxyz',
apply_local_overrides: '1',
device_vendor: 'Junatum',
device_model: 'Test Router',
@@ -41,8 +40,8 @@ let state = {
health_dns_runtime: '1',
blocklist_installed: '1',
blocklist_file_size_kb: '2048',
license_plan: 'pro',
license_status: 'active'
entitlement_plan: 'pro',
entitlement_status: 'active'
},
warnings: [],
errors: []
@@ -67,12 +66,6 @@ function to_int(v, def) {
return type(n) == 'int' ? n : def;
}
function mask_secret(v) {
let s = sprintf('%s', v || '');
if (!length(s)) return '';
if (length(s) <= 8) return '********';
return sprintf('%s...%s', substr(s, 0, 4), substr(s, length(s) - 4));
}
return {
PKG_NAME: 'safeshield',
@@ -93,6 +86,5 @@ return {
file_size_kb: function() { return 0; },
to_bool: to_bool,
to_optional_bool: to_optional_bool,
to_int: to_int,
mask_secret: mask_secret
to_int: to_int
};
@@ -1,9 +1,11 @@
'use strict';
let state = { service_running: true, dnsmasq_running: true };
let state = { service_running: true, dnsmasq_running: true, lookup_ok: true };
return {
state: state,
service_status: function(name) {
let running = name == 'dnsmasq' ? state.dnsmasq_running : state.service_running;
return { running: running && state.lookup_ok, state: !state.lookup_ok ? 'unknown' : (running ? 'running' : 'stopped'), lookup_ok: state.lookup_ok };
},
service_running: function() { return state.service_running; },
dnsmasq_running: function() { return state.dnsmasq_running; }
};