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:
authorMHSanaei <ho3ein.sanaei@gmail.com>2026-04-21 18:24:42 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2026-04-21 18:24:42 +0300
commit733f44ef0f593d8eb987e54da7a26d1bc46a6b6e (patch)
tree0ad625a029d28c918c3dada8b87267d2d47939ae /web/html/xray.html
parentfaec3ca0381a517d889189647c207cdec8b21e94 (diff)
balancerTags with a default empty entry
Diffstat (limited to 'web/html/xray.html')
-rw-r--r--web/html/xray.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/web/html/xray.html b/web/html/xray.html
index 01b4e4e2..9c62ba69 100644
--- a/web/html/xray.html
+++ b/web/html/xray.html
@@ -938,6 +938,15 @@
if (newTemplateSettings.routing.balancers.length === 0) {
delete newTemplateSettings.routing.balancers;
}
+
+ // Remove orphaned balancer references from routing rules
+ if (newTemplateSettings.routing.rules) {
+ newTemplateSettings.routing.rules.forEach((rule) => {
+ if (rule.balancerTag && rule.balancerTag === removedBalancer.tag) {
+ delete rule.balancerTag;
+ }
+ });
+ }
this.templateSettings = newTemplateSettings;
this.updateObservatorySelectors();
this.obsSettings = '';