Compare commits

...

1 Commits
4.2 ... 4.3

Author SHA1 Message Date
2dust
656451f604 Update V2rayConfigHandler.cs 2020-12-31 13:45:00 +08:00

View File

@@ -220,6 +220,10 @@ namespace v2rayN.Handler
var it = Utils.DeepCopy(rules);
it.ip = null;
it.type = "field";
if (Utils.IsNullOrEmpty(rules.port))
{
it.port = null;
}
v2rayConfig.routing.rules.Add(it);
hasDomainIp = true;
}
@@ -228,6 +232,10 @@ namespace v2rayN.Handler
var it = Utils.DeepCopy(rules);
it.domain = null;
it.type = "field";
if (Utils.IsNullOrEmpty(rules.port))
{
it.port = null;
}
v2rayConfig.routing.rules.Add(it);
hasDomainIp = true;
}