diff --git a/lib/net.js b/lib/net.js index 685c64b326d..5a480a35b57 100644 --- a/lib/net.js +++ b/lib/net.js @@ -1167,12 +1167,13 @@ Server.prototype.listen = function () { } }; -Server.prototype.listenFD = function (fd) { +Server.prototype.listenFD = function (fd, type) { if (this.fd) { throw new Error('Server already opened'); } this.fd = fd; + this.type = type || null; this._startWatcher(); };