@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user