mirror of
https://github.com/2dust/v2rayN.git
synced 2025-07-01 20:42:10 +00:00
parent
87f7e65076
commit
9063f0b4f2
2 changed files with 2 additions and 1 deletions
|
@ -1151,7 +1151,7 @@ public class CoreConfigSingboxService
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!hasDomainIp
|
if (!hasDomainIp
|
||||||
&& (rule.port != null || rule.port_range != null || rule.protocol != null || rule.inbound != null))
|
&& (rule.port != null || rule.port_range != null || rule.protocol != null || rule.inbound != null || rule.network != null))
|
||||||
{
|
{
|
||||||
rules.Add(rule);
|
rules.Add(rule);
|
||||||
}
|
}
|
||||||
|
|
|
@ -614,6 +614,7 @@ public class CoreConfigV2rayService
|
||||||
if (rule.port.IsNotEmpty()
|
if (rule.port.IsNotEmpty()
|
||||||
|| rule.protocol?.Count > 0
|
|| rule.protocol?.Count > 0
|
||||||
|| rule.inboundTag?.Count > 0
|
|| rule.inboundTag?.Count > 0
|
||||||
|
|| rule.network != null
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
var it = JsonUtils.DeepCopy(rule);
|
var it = JsonUtils.DeepCopy(rule);
|
||||||
|
|
Loading…
Reference in a new issue