Commit c94f79a6 authored by Grigorii Demidov's avatar Grigorii Demidov

http: interface parameter check fix

parent 34878d5e
Pipeline #36735 passed with stages
in 8 minutes and 33 seconds
......@@ -283,7 +283,9 @@ function M.interface(host, port, endpoints, crtfile, keyfile)
crtfile = 'self.crt'
keyfile = 'self.key'
ephemeral = true
else error('certificate provided, but missing key') end
elseif not keyfile then
error('certificate provided, but missing key')
end
-- Read or create self-signed x509 certificate
local f = io.open(crtfile, 'r')
if f then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment