From 6cce4f60cc2c0dc80dd0cf8c45c72cc8475b2dbf Mon Sep 17 00:00:00 2001 From: CoryGH Date: Thu, 20 May 2021 07:21:52 -0400 Subject: [PATCH] removing hook while keeping newConnection change removal of hook while keeping `newConnection` change from private to public for use in multithreaded applications --- lib/server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/server.js b/lib/server.js index f50c7dd..903cf1b 100644 --- a/lib/server.js +++ b/lib/server.js @@ -438,9 +438,9 @@ function Server (options) { this.routes = {} if ((options.cert || options.certificate) && options.key) { options.cert = options.cert || options.certificate - this.server = tls.createServer(options, options.connectionRouter ? options.connectionRouter : self.newConnection) + this.server = tls.createServer(options, self.newConnection) } else { - this.server = net.createServer(options.connectionRouter ? options.connectionRouter : self.newConnection) + this.server = net.createServer(self.newConnection) } this.server.log = options.log this.server.ldap = {