Skip to content
Snippets Groups Projects
Commit b559fe7d authored by Marek Vavruša's avatar Marek Vavruša
Browse files

daemon: luasec/luasocket optional

parent 512687c3
No related branches found
No related tags found
No related merge requests found
......@@ -145,8 +145,11 @@ end
-- Fetch over HTTPS with peert cert checked
local function https_fetch(url, ca)
local https = require('ssl.https')
local ltn12 = require('ltn12')
local ssl_ok, https = pcall(require, 'ssl.https')
local ltn_ok, ltn12 = pcall(require, 'ltn12')
if not ssl_ok or not ltn_ok then
return nil, 'luasec and luasocket needed for root TA bootstrap'
end
local resp = {}
local r, c, h, s = https.request{
url = url,
......
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