Skip to content
Snippets Groups Projects
Unverified Commit 78ca654c authored by Maciej Krüger's avatar Maciej Krüger
Browse files

gluon-mesh-vpn-fastd: fix empty string key

parent 08a8ef0b
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,13 @@ local vpn_core = require 'gluon.mesh-vpn' ...@@ -7,7 +7,13 @@ local vpn_core = require 'gluon.mesh-vpn'
local M = {} local M = {}
function M.public_key() function M.public_key()
return util.trim(util.exec('/etc/init.d/fastd show_key mesh_vpn')) local key = util.trim(util.exec('/etc/init.d/fastd show_key mesh_vpn'))
if key == '' then
key = nil
end
return key
end end
function M.enable(val) function M.enable(val)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment