From 1bffe192443e9b43fa279022871762d42f531d14 Mon Sep 17 00:00:00 2001 From: Anya Lin Date: Sun, 29 Oct 2023 18:48:21 +0800 Subject: [PATCH] feat(client): Added a prompt for the user to choose whether to install 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..b593cf1d 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 ip-full and kmod-tun'); } o.default = 'redirect_tproxy'; o.rmempty = false;