mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-16 09:24:59 +03:00
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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user