|
|
|
@ -865,7 +865,7 @@ namespace ServiceLib.Handler.CoreConfig
|
|
|
|
|
var txtOutbound = Utils.GetEmbedText(Global.SingboxSampleOutbound); |
|
|
|
|
|
|
|
|
|
//Previous proxy |
|
|
|
|
var prevNode = LazyConfig.Instance.GetProfileItemViaRemarks(subItem.prevProfile!); |
|
|
|
|
var prevNode = LazyConfig.Instance.GetProfileItemViaRemarks(subItem.prevProfile); |
|
|
|
|
if (prevNode is not null |
|
|
|
|
&& prevNode.configType != EConfigType.Custom) |
|
|
|
|
{ |
|
|
|
@ -878,7 +878,7 @@ namespace ServiceLib.Handler.CoreConfig
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//Next proxy |
|
|
|
|
var nextNode = LazyConfig.Instance.GetProfileItemViaRemarks(subItem.nextProfile!); |
|
|
|
|
var nextNode = LazyConfig.Instance.GetProfileItemViaRemarks(subItem.nextProfile); |
|
|
|
|
if (nextNode is not null |
|
|
|
|
&& nextNode.configType != EConfigType.Custom) |
|
|
|
|
{ |
|
|
|
@ -956,7 +956,7 @@ namespace ServiceLib.Handler.CoreConfig
|
|
|
|
|
if (routing != null) |
|
|
|
|
{ |
|
|
|
|
var rules = JsonUtils.Deserialize<List<RulesItem>>(routing.ruleSet); |
|
|
|
|
foreach (var item in rules!) |
|
|
|
|
foreach (var item in rules ?? []) |
|
|
|
|
{ |
|
|
|
|
if (item.enabled) |
|
|
|
|
{ |
|
|
|
@ -971,7 +971,7 @@ namespace ServiceLib.Handler.CoreConfig
|
|
|
|
|
if (lockedItem != null) |
|
|
|
|
{ |
|
|
|
|
var rules = JsonUtils.Deserialize<List<RulesItem>>(lockedItem.ruleSet); |
|
|
|
|
foreach (var item in rules!) |
|
|
|
|
foreach (var item in rules ?? []) |
|
|
|
|
{ |
|
|
|
|
GenRoutingUserRule(item, singboxConfig.route.rules); |
|
|
|
|
} |
|
|
|
|