From a787ab497cf55c51a69284f71821fa353d823766 Mon Sep 17 00:00:00 2001 From: AghayeCoder Date: Fri, 31 Jan 2025 17:24:03 +0330 Subject: switcher for outbound traffic --- web/html/xui/xray.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'web/html/xui/xray.html') diff --git a/web/html/xui/xray.html b/web/html/xui/xray.html index cc3e1239..3f15c7ba 100644 --- a/web/html/xui/xray.html +++ b/web/html/xui/xray.html @@ -143,6 +143,7 @@ + @@ -1823,6 +1824,18 @@ this.templateSettings = newTemplateSettings; } }, + outboundTraffic: { + get: function () { + if (!this.templateSettings || !this.templateSettings.policy.system || !this.templateSettings.policy.system.statsOutboundDownlink) return false; + return this.templateSettings.policy.system.statsOutboundDownlink; + }, + set: function (newValue) { + newTemplateSettings = this.templateSettings; + newTemplateSettings.policy.system.statsOutboundDownlink = newValue; + newTemplateSettings.policy.system.statsOutboundUplink = newValue; + this.templateSettings = newTemplateSettings; + } + }, maskAddressLog: { get: function () { if (!this.templateSettings || !this.templateSettings.log || !this.templateSettings.log.maskAddress) return ""; -- cgit v1.2.3