From aa17e3e86eb807afa6bf3964e000858819a4153e Mon Sep 17 00:00:00 2001 From: Cyrus Fox Date: Thu, 23 Mar 2017 12:51:41 +0100 Subject: [PATCH] gluon-mesh-vpn-tunneldigger: ignore default config when checking for legacy configs --- .../luasrc/lib/gluon/upgrade/400-mesh-vpn-tunneldigger | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/gluon-mesh-vpn-tunneldigger/luasrc/lib/gluon/upgrade/400-mesh-vpn-tunneldigger b/package/gluon-mesh-vpn-tunneldigger/luasrc/lib/gluon/upgrade/400-mesh-vpn-tunneldigger index 04ddf734..01500e52 100755 --- a/package/gluon-mesh-vpn-tunneldigger/luasrc/lib/gluon/upgrade/400-mesh-vpn-tunneldigger +++ b/package/gluon-mesh-vpn-tunneldigger/luasrc/lib/gluon/upgrade/400-mesh-vpn-tunneldigger @@ -8,7 +8,9 @@ local uci = require('simple-uci').cursor() local enabled = uci:get('tunneldigger', 'mesh_vpn', 'enabled') if enabled == nil then - enabled = uci:get_first('tunneldigger', 'broker', 'enabled') + if uci:get_first('tunneldigger', 'broker', 'interface') == "mesh-vpn" then + enabled = uci:get_first('tunneldigger', 'broker', 'enabled') + end end if enabled == nil then enabled = site.mesh_vpn.enabled or false