Fill in c.remoteAddress for TLS connections
This commit is contained in:
parent
b8799d6a1e
commit
5cf425de72
|
@ -252,8 +252,12 @@ function Server(options) {
|
|||
if (c.type === 'unix') {
|
||||
c.remoteAddress = self.server.path;
|
||||
c.remotePort = c.fd;
|
||||
} else if (c.socket) { // TLS
|
||||
c.remoteAddress = c.socket.remoteAddress;
|
||||
c.remotePort = c.socket.remotePort;
|
||||
}
|
||||
|
||||
|
||||
var rdn = new dn.RDN({cn: 'anonymous'});
|
||||
|
||||
c.ldap = {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"name": "ldapjs",
|
||||
"homepage": "http://ldapjs.org",
|
||||
"description": "LDAP client and server APIs",
|
||||
"version": "0.2.6",
|
||||
"version": "0.2.7",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/mcavage/node-ldapjs.git"
|
||||
|
|
Loading…
Reference in New Issue