mirror of
https://github.com/2dust/v2rayN.git
synced 2026-08-05 23:02:04 +03:00
External routing rules templates + regional presets support (#5840)
* External routing rules templates + auto download geo file if repo changed * Regional presets support
This commit is contained in:
@@ -67,6 +67,7 @@ namespace ServiceLib.ViewModels
|
||||
[Reactive] public int MainGirdOrientation { get; set; }
|
||||
[Reactive] public string GeoFileSourceUrl { get; set; }
|
||||
[Reactive] public string SrsFileSourceUrl { get; set; }
|
||||
[Reactive] public string RoutingRulesSourceUrl { get; set; }
|
||||
|
||||
#endregion UI
|
||||
|
||||
@@ -168,6 +169,7 @@ namespace ServiceLib.ViewModels
|
||||
MainGirdOrientation = (int)_config.uiItem.mainGirdOrientation;
|
||||
GeoFileSourceUrl = _config.constItem.geoSourceUrl;
|
||||
SrsFileSourceUrl = _config.constItem.srsSourceUrl;
|
||||
RoutingRulesSourceUrl = _config.constItem.routeRulesTemplateSourceUrl;
|
||||
|
||||
#endregion UI
|
||||
|
||||
@@ -322,6 +324,7 @@ namespace ServiceLib.ViewModels
|
||||
_config.uiItem.mainGirdOrientation = (EGirdOrientation)MainGirdOrientation;
|
||||
_config.constItem.geoSourceUrl = GeoFileSourceUrl;
|
||||
_config.constItem.srsSourceUrl = SrsFileSourceUrl;
|
||||
_config.constItem.routeRulesTemplateSourceUrl = RoutingRulesSourceUrl;
|
||||
|
||||
//systemProxy
|
||||
_config.systemProxyItem.systemProxyExceptions = systemProxyExceptions;
|
||||
|
||||
Reference in New Issue
Block a user