From 7787d8217d99c73229a53d023009650d11f010b0 Mon Sep 17 00:00:00 2001 From: zefie Date: Thu, 19 Jun 2025 12:32:23 -0400 Subject: [PATCH] fix SSL mode did not assign +z after initalizeSocket change --- zefie_wtvp_minisrv/includes/classes/WTVIRC.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zefie_wtvp_minisrv/includes/classes/WTVIRC.js b/zefie_wtvp_minisrv/includes/classes/WTVIRC.js index e420d2c0..7c91fc47 100644 --- a/zefie_wtvp_minisrv/includes/classes/WTVIRC.js +++ b/zefie_wtvp_minisrv/includes/classes/WTVIRC.js @@ -192,7 +192,7 @@ class WTVIRC { } socket.removeAllListeners(); - await this.initializeSocket(secureSocket); + await this.initializeSocket(secureSocket, true); }); secureSocket.resume(); @@ -215,7 +215,7 @@ class WTVIRC { }); } - async initializeSocket(socket) { + async initializeSocket(socket, secure = false) { if (this.debug) { // debug output for socket data const originalWrite = socket.write; @@ -244,7 +244,7 @@ class WTVIRC { socket.client_caps = []; this.filterHostname(socket, socket.remoteAddress); socket.timestamp = this.getDate(); - socket.secure = false; + socket.secure = secure; socket.uniqueId = `${this.serverId}${this.generateUniqueId(socket)}`; await this.doInitialHandshake(socket);