Centralize config access in database handlers

Remove Config parameters from ConfigDbHandler methods and use the current configuration where needed. Update desktop, WebAPI, and test callers.
This commit is contained in:
2dust
2026-11-15 15:18:32 +08:00
parent a6624e0370
commit 254b39bc45
24 changed files with 262 additions and 279 deletions
@@ -46,7 +46,7 @@ public class CoreConfigContextBuilder
SimpleDnsItem = config.SimpleDNSItem,
ProtectDomainList = [],
RawDnsItem = await ConfigDbQuery.GetDNSItem(coreType),
RoutingItem = await ConfigDbHandler.GetDefaultRouting(config),
RoutingItem = await ConfigDbHandler.GetDefaultRouting(),
IsWindows = Utils.IsWindows(),
IsMacOS = Utils.IsMacOS(),
IsLinux = Utils.IsLinux(),