Skip to content

Commit c81bc2f

Browse files
authored
1 parent 87f7e65 commit c81bc2f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

v2rayN/ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ private async Task<int> GenRoutingUserRule(RulesItem item, List<Rule4Sbox> rules
11511151
}
11521152

11531153
if (!hasDomainIp
1154-
&& (rule.port != null || rule.port_range != null || rule.protocol != null || rule.inbound != null))
1154+
&& (rule.port != null || rule.port_range != null || rule.protocol != null || rule.inbound != null || rule.network != null))
11551155
{
11561156
rules.Add(rule);
11571157
}

v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,7 @@ private async Task<int> GenRoutingUserRule(RulesItem4Ray? rule, V2rayConfig v2ra
614614
if (rule.port.IsNotEmpty()
615615
|| rule.protocol?.Count > 0
616616
|| rule.inboundTag?.Count > 0
617+
|| rule.network != null
617618
)
618619
{
619620
var it = JsonUtils.DeepCopy(rule);

0 commit comments

Comments
 (0)