From 4621933e5bad743aafd2b15bd72ed99069df99ad Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Sat, 17 Feb 2024 21:40:25 +0330 Subject: [PATCH] [outbound] set master outbound Co-Authored-By: Alireza Ahmadi --- web/html/xui/xray.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/web/html/xui/xray.html b/web/html/xui/xray.html index 871631e0..10beaa43 100644 --- a/web/html/xui/xray.html +++ b/web/html/xui/xray.html @@ -406,6 +406,10 @@ + + + {{ i18n "pages.xray.rules.first"}} + {{ i18n "edit" }} @@ -938,6 +942,11 @@ outbounds.splice(index,1); this.outboundSettings = JSON.stringify(outbounds); }, + setFirstOutbound(index){ + outbounds = this.templateSettings.outbounds; + outbounds.splice(0, 0, outbounds.splice(index, 1)[0]); + this.outboundSettings = JSON.stringify(outbounds); + }, async refreshOutboundTraffic() { if (!this.refreshing) { this.refreshing = true;