From be9d8771f5292b27726a12c0d48996c59a16f489 Mon Sep 17 00:00:00 2001 From: Florian Maurer Date: Fri, 1 Nov 2024 13:03:48 +0100 Subject: [PATCH] Revert "config-mode: show mesh-vpn options if parker is used" This reverts commit 5a6d1e7566e5715c2395c6a66a6fb3e39b1ca913. --- .../luasrc/lib/gluon/config-mode/wizard/0300-mesh-vpn.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/gluon-config-mode-mesh-vpn/luasrc/lib/gluon/config-mode/wizard/0300-mesh-vpn.lua b/package/gluon-config-mode-mesh-vpn/luasrc/lib/gluon/config-mode/wizard/0300-mesh-vpn.lua index 261dfbd42d..da17af3af2 100644 --- a/package/gluon-config-mode-mesh-vpn/luasrc/lib/gluon/config-mode/wizard/0300-mesh-vpn.lua +++ b/package/gluon-config-mode-mesh-vpn/luasrc/lib/gluon/config-mode/wizard/0300-mesh-vpn.lua @@ -1,4 +1,11 @@ +local vpn = require 'gluon.mesh-vpn' +local _, active_vpn = vpn.get_active_provider() + return function(form, uci) + if active_vpn == nil then + return + end + local pkg_i18n = i18n 'gluon-config-mode-mesh-vpn' local msg = pkg_i18n.translate(