Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit 6cce4f6

Browse files
authored
removing hook while keeping newConnection change
removal of hook while keeping `newConnection` change from private to public for use in multithreaded applications
1 parent bca931a commit 6cce4f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,9 +438,9 @@ function Server (options) {
438438
this.routes = {}
439439
if ((options.cert || options.certificate) && options.key) {
440440
options.cert = options.cert || options.certificate
441-
this.server = tls.createServer(options, options.connectionRouter ? options.connectionRouter : self.newConnection)
441+
this.server = tls.createServer(options, self.newConnection)
442442
} else {
443-
this.server = net.createServer(options.connectionRouter ? options.connectionRouter : self.newConnection)
443+
this.server = net.createServer(self.newConnection)
444444
}
445445
this.server.log = options.log
446446
this.server.ldap = {

0 commit comments

Comments
 (0)