mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-09-10 18:34:18 +08:00
🏅 Sync 2026-06-10 01:49:57
This commit is contained in:
@@ -745,6 +745,7 @@ uci.foreach(uciconf, ucipgrp, (cfg) => {
|
||||
"include-all": strToBool(cfg.include_all),
|
||||
"include-all-proxies": strToBool(cfg.include_all_proxies),
|
||||
"include-all-providers": strToBool(cfg.include_all_providers),
|
||||
"empty-fallback": cfg.empty_fallback ? get_proxygroup(cfg.empty_fallback) : null,
|
||||
// Url-test fields
|
||||
tolerance: (cfg.type === 'url-test') ? strToInt(cfg.tolerance) ?? 150 : null,
|
||||
// Load-balance fields
|
||||
@@ -839,6 +840,7 @@ uci.foreach(uciconf, ucirule, (cfg) => {
|
||||
} : {
|
||||
path: HM_DIR + '/ruleset/' + cfg['.name'],
|
||||
url: cfg.url,
|
||||
"path-in-bundle": cfg.path_in_bundle,
|
||||
"size-limit": bytesizeToByte(cfg.size_limit) || null,
|
||||
interval: (cfg.type === 'http') ? durationToSecond(cfg.interval) ?? 259200 : null,
|
||||
proxy: get_proxygroup(cfg.proxy),
|
||||
|
||||
Reference in New Issue
Block a user