diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-04-02 17:42:00 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-04-02 17:42:00 +0300 |
| commit | c07b2c73d7bd969daf2a59fa17a6297dc8518ff6 (patch) | |
| tree | 96dc105a5fcec680c6535afff9032d0f6ef8a0a9 /web/html | |
| parent | 87acb81496fd2aacb282460e95da05a89dc9a0e1 (diff) | |
enable firewall + open port + update geo files
Diffstat (limited to 'web/html')
| -rw-r--r-- | web/html/xui/setting.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/xui/setting.html b/web/html/xui/setting.html index 7acab065..6838d8b3 100644 --- a/web/html/xui/setting.html +++ b/web/html/xui/setting.html @@ -345,7 +345,7 @@ if(this.templateSettings != null){ this.templateSettings.routing.rules.forEach(routingRule => { if(routingRule.hasOwnProperty("domain")){ - if (routingRule.domain[0] === "regexp:.+.ir$" && routingRule.outboundTag == "blocked"){ + if ((routingRule.domain[0] === "regexp:.+.ir$" || routingRule.domain[0] === "ext:iran.dat:ir") && routingRule.outboundTag == "blocked") { localdomainFilter = true } } @@ -356,7 +356,7 @@ set: function (newValue) { newTemplateSettings = JSON.parse(this.allSetting.xrayTemplateConfig); if (newValue){ - newTemplateSettings.routing.rules.push(JSON.parse("{\"outboundTag\": \"blocked\",\"domain\": [\"regexp:.+.ir$\"],\"type\": \"field\"}")) + newTemplateSettings.routing.rules.push(JSON.parse("{\"outboundTag\": \"blocked\",\"domain\": [\"regexp:.+.ir$\", \"ext:iran.dat:ir\"],\"type\": \"field\"}")) } else { newTemplateSettings.routing.rules = []; |
