mirror of https://github.com/2dust/v2rayN
parent
9dc8cba3f0
commit
656451f604
|
@ -220,6 +220,10 @@ namespace v2rayN.Handler
|
||||||
var it = Utils.DeepCopy(rules);
|
var it = Utils.DeepCopy(rules);
|
||||||
it.ip = null;
|
it.ip = null;
|
||||||
it.type = "field";
|
it.type = "field";
|
||||||
|
if (Utils.IsNullOrEmpty(rules.port))
|
||||||
|
{
|
||||||
|
it.port = null;
|
||||||
|
}
|
||||||
v2rayConfig.routing.rules.Add(it);
|
v2rayConfig.routing.rules.Add(it);
|
||||||
hasDomainIp = true;
|
hasDomainIp = true;
|
||||||
}
|
}
|
||||||
|
@ -228,6 +232,10 @@ namespace v2rayN.Handler
|
||||||
var it = Utils.DeepCopy(rules);
|
var it = Utils.DeepCopy(rules);
|
||||||
it.domain = null;
|
it.domain = null;
|
||||||
it.type = "field";
|
it.type = "field";
|
||||||
|
if (Utils.IsNullOrEmpty(rules.port))
|
||||||
|
{
|
||||||
|
it.port = null;
|
||||||
|
}
|
||||||
v2rayConfig.routing.rules.Add(it);
|
v2rayConfig.routing.rules.Add(it);
|
||||||
hasDomainIp = true;
|
hasDomainIp = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue