diff options
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; } }, |
