From 83df4ae7cfaced03dd12a1b604c857a1ff7a9a9f Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Tue, 13 Feb 2024 22:12:17 +0100 Subject: [PATCH] [outbound] set master outbound #861 --- 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 36d5abd6..b82890f6 100644 --- a/web/html/xui/xray.html +++ b/web/html/xui/xray.html @@ -357,6 +357,10 @@ + + + {{ i18n "pages.xray.rules.first"}} + {{ i18n "edit" }} @@ -765,6 +769,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); + }, addReverse(){ reverseModal.show({ title: '{{ i18n "pages.xray.outbound.addReverse"}}',