fix #19 (tested)
This commit is contained in:
parent
60dcbbd052
commit
8fbfa43f8c
|
@ -59,12 +59,12 @@ module.exports.create = function (challenge) {
|
|||
var server = https.createServer(httpsOptions, servers.httpResponder);
|
||||
|
||||
servers._servers.push(server);
|
||||
servers.listen(port, function () {
|
||||
server.listen(port, function () {
|
||||
if (opts.debug) {
|
||||
console.info('Listening https on', this.address());
|
||||
}
|
||||
});
|
||||
servers.on('error', function (err) {
|
||||
server.on('error', function (err) {
|
||||
if ('EADDRINUSE' === err.code) {
|
||||
console.error("");
|
||||
console.error("You already have a different server running on port '" + port + "'.");
|
||||
|
|
Loading…
Reference in New Issue