We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d53bb6a commit 47923caCopy full SHA for 47923ca
lib/_tls_wrap.js
@@ -155,13 +155,14 @@ function requestOCSP(socket, info) {
155
156
let ctx = socket._handle.sni_context;
157
158
- if (!ctx)
+ if (!ctx) {
159
ctx = socket.server._sharedCreds;
160
161
- // TLS socket is using a `net.Server` instead of a tls.TLSServer.
162
- // Some TLS properties like `server._sharedCreds` will not be present
163
164
- return requestOCSPDone(socket);
+ // TLS socket is using a `net.Server` instead of a tls.TLSServer.
+ // Some TLS properties like `server._sharedCreds` will not be present
+ if (!ctx)
+ return requestOCSPDone(socket);
165
+ }
166
167
// TODO(indutny): eventually disallow raw `SecureContext`
168
if (ctx.context)
0 commit comments