Merge branch 'develop'
This commit is contained in:
commit
f1cc4d0abe
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "aldap",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"description": "Authentication LDAP server",
|
||||
"repository": "git@gitlab.com:ArisuOngaku/aldap.git",
|
||||
"author": "Alice Gaudon <alice@gaudon.pro>",
|
||||
|
@ -57,5 +57,22 @@ export default class LDAPServerComponent extends ApplicationComponent<void> {
|
||||
this.server.listen(8389, '127.0.0.1', () => {
|
||||
Logger.info(`LDAP server listening on ${this.server!.url}`);
|
||||
});
|
||||
this.server.on('close', () => {
|
||||
Logger.info('LDAP server closed.');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
public async stop(): Promise<void> {
|
||||
await new Promise(resolve => {
|
||||
if (this.server) {
|
||||
// @ts-ignore
|
||||
this.server.close(() => {
|
||||
resolve();
|
||||
});
|
||||
} else {
|
||||
resolve();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user