mirror of
https://github.com/2dust/v2rayN.git
synced 2025-05-14 12:18:06 +00:00
Update V2rayConfigHandler.cs
This commit is contained in:
parent
9dc8cba3f0
commit
656451f604
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue