Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormohammadmovaghari <52345697+mohammadmovaghari@users.noreply.github.com>2023-04-04 16:44:40 +0300
committerGitHub <noreply@github.com>2023-04-04 16:44:40 +0300
commit9f18d60b9ce16d89af97ae993a3224bb6c8cd288 (patch)
tree978b3178c6dd5bb616d46a442d8c50b19856bb70 /web/html/xui/setting.html
parentc0580bccb5b574f4a8e4a7f2789d5cdf6049e7fc (diff)
parent0e5de1aec8f3b090fce14638d7e0030ff7b7f40f (diff)
Merge branch 'MHSanaei:main' into api-fix
Diffstat (limited to 'web/html/xui/setting.html')
-rw-r--r--web/html/xui/setting.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/html/xui/setting.html b/web/html/xui/setting.html
index 7acab065..b4a974eb 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.domain[0] === "ext:iran.dat:other") && routingRule.outboundTag == "blocked") {
localdomainFilter = true
}
}
@@ -356,13 +356,13 @@
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\", \"ext:iran.dat:other\"],\"type\": \"field\"}"))
}
else {
newTemplateSettings.routing.rules = [];
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.domain[0] === "ext:iran.dat:other") && routingRule.outboundTag == "blocked"){
return;
}
}