From 4e2aca204281ef5090cde790a02a8a74fddd0471 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Thu, 21 Nov 2024 15:08:25 +0800 Subject: [PATCH] fix(client): add dns sniff protocol back Signed-off-by: Tianling Shen --- htdocs/luci-static/resources/view/homeproxy/client.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/luci-static/resources/view/homeproxy/client.js b/htdocs/luci-static/resources/view/homeproxy/client.js index f9dbe82b..2e5a5b7c 100644 --- a/htdocs/luci-static/resources/view/homeproxy/client.js +++ b/htdocs/luci-static/resources/view/homeproxy/client.js @@ -480,10 +480,11 @@ return view.extend({ so = ss.taboption('field_other', form.MultiValue, 'protocol', _('Protocol'), _('Sniffed protocol, see Sniff for details.')); - if (features.version.localeCompare('1.10.0', undefined, { numeric: true, sensitivity: 'base' }) >= 0) { + if (features.version.localeCompare('1.10.0', undefined, { numeric: true, sensitivity: 'base' }) >= 0) so.value('bittorrent', _('BitTorrent')); + so.value('dns', _('DNS')); + if (features.version.localeCompare('1.10.0', undefined, { numeric: true, sensitivity: 'base' }) >= 0) so.value('dtls', _('DTLS')); - } so.value('http', _('HTTP')); so.value('quic', _('QUIC')); if (features.version.localeCompare('1.10.0', undefined, { numeric: true, sensitivity: 'base' }) >= 0) { @@ -955,7 +956,7 @@ return view.extend({ so.modalonly = true; if (features.version.localeCompare('1.10.0', undefined, { numeric: true, sensitivity: 'base' }) >= 0) { - so = ss.taboption('field_other', form.Flag, 'rule_set_ip_cidr_accept_empty', _('Accept empty query response.'), + so = ss.taboption('field_other', form.Flag, 'rule_set_ip_cidr_accept_empty', _('Accept empty query response'), _('Make IP CIDR in rule-sets accept empty query response.')); so.default = so.disabled; so.modalonly = true;