mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-22 10:45:56 +02:00
* ServerModule's createServer() is now async
* Re-write of NNTP Message-ID <> internal message UUIDs
This commit is contained in:
parent
346815a4f2
commit
9d1815682d
11 changed files with 305 additions and 84 deletions
|
@ -104,7 +104,7 @@ exports.getModule = class WebServerModule extends ServerModule {
|
|||
return this.enableHttp || this.enableHttps;
|
||||
}
|
||||
|
||||
createServer() {
|
||||
createServer(cb) {
|
||||
if(this.enableHttp) {
|
||||
this.httpServer = http.createServer( (req, resp) => this.routeRequest(req, resp) );
|
||||
}
|
||||
|
@ -121,6 +121,8 @@ exports.getModule = class WebServerModule extends ServerModule {
|
|||
|
||||
this.httpsServer = https.createServer(options, (req, resp) => this.routeRequest(req, resp) );
|
||||
}
|
||||
|
||||
return cb(null);
|
||||
}
|
||||
|
||||
listen() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue