Output ldapi:// URLs for UNIX domain sockets
This commit is contained in:
parent
00bcb58ea1
commit
df13275b8e
|
@ -470,6 +470,11 @@ function Server(options) {
|
||||||
});
|
});
|
||||||
this.__defineGetter__('url', function () {
|
this.__defineGetter__('url', function () {
|
||||||
var str;
|
var str;
|
||||||
|
if (!this.server.address().family) {
|
||||||
|
str = 'ldapi://';
|
||||||
|
str += this.host.replace(new RegExp('/', 'g'), '%2f');
|
||||||
|
return str;
|
||||||
|
}
|
||||||
if (this.server instanceof tls.Server) {
|
if (this.server instanceof tls.Server) {
|
||||||
str = 'ldaps://';
|
str = 'ldaps://';
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue