Skip to content

Commit ff0896b

Browse files
committed
Fix wrong reference in client
1 parent f66915c commit ff0896b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tls-client.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const options = {
2222
const socket = tls.connect(options, () => {
2323
console.log('client connected', socket.authorized ? 'authorized' : 'unauthorized');
2424
if (!socket.authorized) {
25-
console.log("Error: ", client.authorizationError());
25+
console.log("Error: ", socket.authorizationError());
2626
socket.end();
2727
}
2828
})

0 commit comments

Comments
 (0)