Skip to content

Commit

Permalink
ffmuc-mesh-vpn-wireguard: fix uci value deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
grische committed Mar 27, 2024
1 parent e0267b1 commit 194ae69
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ uci:delete_all('wireguard', 'peer', function(peer)
end)

-- Delete unused configurations from older versions
uci:delete("wireguard", "iface")
uci:delete("wireguard", "limit")
uci:delete("wireguard", "broker")
uci:delete("wireguard", "mesh_vpn", "iface")
uci:delete("wireguard", "mesh_vpn", "limit")
uci:delete("wireguard", "mesh_vpn", "broker")

local mesh_enabled = uci:get_bool('gluon', 'mesh_vpn', 'enabled') -- default
or uci:get_bool('fastd', 'mesh_vpn', 'enabled') --migration
Expand Down

0 comments on commit 194ae69

Please sign in to comment.