We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f66915c commit ff0896bCopy full SHA for ff0896b
tls-client.js
@@ -22,7 +22,7 @@ const options = {
22
const socket = tls.connect(options, () => {
23
console.log('client connected', socket.authorized ? 'authorized' : 'unauthorized');
24
if (!socket.authorized) {
25
- console.log("Error: ", client.authorizationError());
+ console.log("Error: ", socket.authorizationError());
26
socket.end();
27
}
28
})
0 commit comments