Update V2rayConfigHandler.cs

pull/1232/head 4.3
2dust 2020-12-31 13:45:00 +08:00
parent 9dc8cba3f0
commit 656451f604
1 changed files with 8 additions and 0 deletions

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;
}