mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Add error handling on ldap client to avoid crash on ECONNRESET
This commit is contained in:
parent
e88d47a83b
commit
96b8ad9d6b
|
@ -32,6 +32,10 @@ var ldap_client = ldap.createClient({
|
||||||
reconnect: true
|
reconnect: true
|
||||||
});
|
});
|
||||||
|
|
||||||
|
ldap_client.on('error', function(err) {
|
||||||
|
console.error('LDAP Error:', err.message)
|
||||||
|
})
|
||||||
|
|
||||||
var deps = {};
|
var deps = {};
|
||||||
deps.u2f = u2f;
|
deps.u2f = u2f;
|
||||||
deps.nedb = nedb;
|
deps.nedb = nedb;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user