mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-18 11:15:00 +03:00
Optimize code ,add IsGroupType extension. Adjust EConfigType
This commit is contained in:
@@ -379,7 +379,7 @@ public partial class CoreConfigSingboxService
|
||||
|
||||
if (node == null
|
||||
|| (!Global.SingboxSupportConfigType.Contains(node.ConfigType)
|
||||
&& node.ConfigType is not (EConfigType.PolicyGroup or EConfigType.ProxyChain)))
|
||||
&& !node.ConfigType.IsGroupType()))
|
||||
{
|
||||
return Global.ProxyTag;
|
||||
}
|
||||
@@ -391,7 +391,7 @@ public partial class CoreConfigSingboxService
|
||||
return tag;
|
||||
}
|
||||
|
||||
if (node.ConfigType is EConfigType.PolicyGroup or EConfigType.ProxyChain)
|
||||
if (node.ConfigType.IsGroupType())
|
||||
{
|
||||
var ret = await GenGroupOutbound(node, singboxConfig, tag);
|
||||
if (ret == 0)
|
||||
|
||||
Reference in New Issue
Block a user