adding connectionRouter hook
adding connectionRouter hook back in
This commit is contained in:
parent
534e3dd542
commit
992be5a557
|
@ -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, self.newConnection)
|
||||
this.server = tls.createServer(options, options.connectionRouter ? options.connectionRouter : self.newConnection)
|
||||
} else {
|
||||
this.server = net.createServer(self.newConnection)
|
||||
this.server = net.createServer(options.connectionRouter ? options.connectionRouter : self.newConnection)
|
||||
}
|
||||
this.server.log = options.log
|
||||
this.server.ldap = {
|
||||
|
|
Loading…
Reference in New Issue