Update server.js

Maybe you meant 'socket', right???
sock -> socket
This commit is contained in:
Jo Hyun Woo
2019-03-11 01:11:52 +09:00
committed by GitHub
parent d9fca62c17
commit 9d9c54845c
+2 -2
View File
@@ -145,13 +145,13 @@ export default function(opt) {
server.on('upgrade', (req, socket, head) => {
const hostname = req.headers.host;
if (!hostname) {
sock.destroy();
socket.destroy();
return;
}
const clientId = GetClientIdFromHostname(hostname);
if (!clientId) {
sock.destroy();
socket.destroy();
return;
}