fix #19 (tested)

This commit is contained in:
AJ ONeal 2016-08-10 10:23:12 -04:00
parent 60dcbbd052
commit 8fbfa43f8c
1 changed files with 2 additions and 2 deletions

View File

@ -59,12 +59,12 @@ module.exports.create = function (challenge) {
var server = https.createServer(httpsOptions, servers.httpResponder); var server = https.createServer(httpsOptions, servers.httpResponder);
servers._servers.push(server); servers._servers.push(server);
servers.listen(port, function () { server.listen(port, function () {
if (opts.debug) { if (opts.debug) {
console.info('Listening https on', this.address()); console.info('Listening https on', this.address());
} }
}); });
servers.on('error', function (err) { server.on('error', function (err) {
if ('EADDRINUSE' === err.code) { if ('EADDRINUSE' === err.code) {
console.error(""); console.error("");
console.error("You already have a different server running on port '" + port + "'."); console.error("You already have a different server running on port '" + port + "'.");