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>2024-07-15 01:09:31 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-07-15 01:09:31 +0300
commit816adfc3ea6ae6474e08fbba6476277e3d99707f (patch)
tree181f56b2105910dd305d0da24c7e5b05098c6246 /web/html/xui/xray.html
parent0a95b0c7b297ef30f45d4c055cd7e7f8cc5b825e (diff)
fallback outbound in balancer
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/xui/xray.html')
-rw-r--r--web/html/xui/xray.html14
1 files changed, 9 insertions, 5 deletions
diff --git a/web/html/xui/xray.html b/web/html/xui/xray.html
index cce193c2..2a4989a7 100644
--- a/web/html/xui/xray.html
+++ b/web/html/xui/xray.html
@@ -1268,7 +1268,8 @@
balancer: {
tag: '',
strategy: 'random',
- selector: []
+ selector: [],
+ fallbackTag: ''
},
confirm: (balancer) => {
balancerModal.loading();
@@ -1278,7 +1279,8 @@
}
let tmpBalancer = {
'tag': balancer.tag,
- 'selector': balancer.selector
+ 'selector': balancer.selector,
+ 'fallbackTag': balancer.fallbackTag
};
if (balancer.strategy && balancer.strategy != 'random') {
tmpBalancer.strategy = {
@@ -1308,7 +1310,8 @@
let tmpBalancer = {
'tag': balancer.tag,
- 'selector': balancer.selector
+ 'selector': balancer.selector,
+ 'fallbackTag': balancer.fallbackTag
};
// Remove old tag
@@ -1377,7 +1380,7 @@
this.changeObsCode();
},
deleteBalancer(index) {
- let newTemplateSettings = { ...this.templateSettings };
+ newTemplateSettings = this.templateSettings;
// Remove from balancers
const removedBalancer = this.balancersData.splice(index, 1)[0];
@@ -1623,7 +1626,8 @@
'key': index,
'tag': o.tag ? o.tag : "",
'strategy': o.strategy?.type ?? "random",
- 'selector': o.selector ? o.selector : []
+ 'selector': o.selector ? o.selector : [],
+ 'fallbackTag': o.fallbackTag?? '',
});
});
}