removing hook while keeping newConnection change

removal of hook while keeping `newConnection` change from private to public for use in multithreaded applications
This commit is contained in:
CoryGH 2021-05-20 07:21:52 -04:00 committed by GitHub
parent bca931a4cd
commit 6cce4f60cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 = {