We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbd36c8 commit 00ee933Copy full SHA for 00ee933
1 file changed
lib/luanode/net.lua
@@ -392,6 +392,12 @@ end
392
393
394
function Socket:setSecure(context)
395
+
396
+ -- We need a socket here in order to make it secure
397
+ if not self._raw_socket then
398
+ error("Socket is closed.")
399
+ end
400
401
-- Do we have openssl crypto?
402
local SecureContext = process.SecureContext
403
--local SecureStream = process.SecureStream
0 commit comments