diff options
| author | Sanaei <ho3ein.sanaei@gmail.com> | 2025-01-31 18:01:14 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-31 18:01:14 +0300 |
| commit | c8e8c97afc4960e4e080335df69ab6a3fb65d105 (patch) | |
| tree | 2d8b2f9c4d6f7d77ed726a54b8112d5bed5d44c6 /web/html/xui/xray.html | |
| parent | 3be204f272d68f0d6db1708fe3e0af84a675bfbc (diff) | |
| parent | 46ba4c451856d4bc4b0ee94c18081c83b2f1655a (diff) | |
Merge pull request #2652 from Incognito-Coder/main
Some Improvement
Diffstat (limited to 'web/html/xui/xray.html')
| -rw-r--r-- | web/html/xui/xray.html | 13 |
1 files changed, 13 insertions, 0 deletions
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 @@ </a-select> </a-col> </a-row> + <setting-list-item type="switch" title='{{ i18n "pages.xray.outBoundTraffic"}}' desc='{{ i18n "pages.xray.outBoundTrafficDesc"}}' v-model="outboundTraffic"></setting-list-item> </a-list-item> </a-collapse-panel> <a-collapse-panel header='{{ i18n "pages.xray.logConfigs" }}'> @@ -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 ""; |
