Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

Commit

Permalink
Re-enable ability to listen on UNIX domain sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
pfmooney committed Oct 30, 2013
1 parent 5d91284 commit d4a9d37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -651,8 +651,8 @@ Server.prototype.after = function () {

// All these just reexpose the requisite net.Server APIs
Server.prototype.listen = function (port, host, callback) {
if (typeof port !== 'number')
throw new TypeError('port (number) required');
if (typeof (port) !== 'number' && typeof (port) !== 'string')
throw new TypeError('port (number or path) required');

if (typeof (host) === 'function') {
callback = host;
Expand Down

0 comments on commit d4a9d37

Please sign in to comment.