From 4cccdfc0df78c4c158ceab1c632d7726e302c61b Mon Sep 17 00:00:00 2001 From: Anya Lin Date: Sun, 29 Oct 2023 13:02:38 +0800 Subject: [PATCH] feat(client): add obvious prompt for users who need Tun --- htdocs/luci-static/resources/view/homeproxy/client.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/luci-static/resources/view/homeproxy/client.js b/htdocs/luci-static/resources/view/homeproxy/client.js index ad642a6d..694ace43 100644 --- a/htdocs/luci-static/resources/view/homeproxy/client.js +++ b/htdocs/luci-static/resources/view/homeproxy/client.js @@ -245,6 +245,8 @@ return view.extend({ if (features.hp_has_ip_full && features.hp_has_tun) { o.value('redirect_tun', _('Redirect TCP + Tun UDP')); o.value('tun', _('Tun TCP/UDP')); + } else { + o.description = _('To enable Tun support, you need to install %s
').format(['ip-full', 'kmod-tun']); } o.default = 'redirect_tproxy'; o.rmempty = false;