Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user