diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-03-11 11:31:08 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-03-11 11:31:08 +0300 |
| commit | e6254e23f29d1c98173378acf0051b789f595289 (patch) | |
| tree | ac1e18813f2738f3168610391ceba7f07f32fe22 /web/html/xui/xray.html | |
| parent | 5f3c2f781e3f782d43967859d01a16b23bef73df (diff) | |
[xray] add dns tag
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/xui/xray.html')
| -rw-r--r-- | web/html/xui/xray.html | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/web/html/xui/xray.html b/web/html/xui/xray.html index 20a36f63..5fb04152 100644 --- a/web/html/xui/xray.html +++ b/web/html/xui/xray.html @@ -546,6 +546,7 @@ <a-tab-pane key="tpl-6" tab='DNS' style="padding-top: 20px;" force-render="true"> <setting-list-item type="switch" title='{{ i18n "pages.xray.dns.enable" }}' desc='{{ i18n "pages.xray.dns.enableDesc" }}' v-model="enableDNS"></setting-list-item> <template v-if="enableDNS"> + <setting-list-item type="text" title='{{ i18n "pages.xray.dns.tag" }}' desc='{{ i18n "pages.xray.dns.tagDesc" }}' v-model="dnsTag"></setting-list-item> <a-list-item> <a-row style="padding: 20px"> <a-col :lg="24" :xl="12"> @@ -2027,7 +2028,17 @@ }, set: function (newValue) { newTemplateSettings = this.templateSettings; - newTemplateSettings.dns = newValue ? { servers: [], queryStrategy: "UseIP" } : null; + newTemplateSettings.dns = newValue ? { servers: [], queryStrategy: "UseIP", tag: "dns_inbound" } : null; + this.templateSettings = newTemplateSettings; + } + }, + dnsTag: { + get: function () { + return this.enableDNS ? this.templateSettings.dns.tag : ""; + }, + set: function (newValue) { + newTemplateSettings = this.templateSettings; + newTemplateSettings.dns.tag = newValue; this.templateSettings = newTemplateSettings; } }, |
