Add extra socket error handlers
This commit is contained in:
parent
17e01746ba
commit
d36f60bb4f
@ -42,6 +42,7 @@ class Identification {
|
|||||||
}
|
}
|
||||||
|
|
||||||
serverConnection(socket) {
|
serverConnection(socket) {
|
||||||
|
socket.on("error", (err) => log.error(`Identd socket error: ${err}`));
|
||||||
socket.on("data", (data) => {
|
socket.on("data", (data) => {
|
||||||
this.respondToIdent(socket, data);
|
this.respondToIdent(socket, data);
|
||||||
socket.end();
|
socket.end();
|
||||||
|
@ -159,6 +159,8 @@ module.exports = function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
sockets.on("connect", (socket) => {
|
sockets.on("connect", (socket) => {
|
||||||
|
socket.on("error", (err) => log.error(`io socket error: ${err}`));
|
||||||
|
|
||||||
if (Helper.config.public) {
|
if (Helper.config.public) {
|
||||||
performAuthentication.call(socket, {});
|
performAuthentication.call(socket, {});
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user