diff --git a/lib/http-proxy/index.js b/lib/http-proxy/index.js index 290569a3e..994781a9b 100644 --- a/lib/http-proxy/index.js +++ b/lib/http-proxy/index.js @@ -111,7 +111,7 @@ function ProxyServer(options) { require('util').inherits(ProxyServer, EE3); -ProxyServer.prototype.listen = function(port) { +ProxyServer.prototype.listen = function(port, hostname) { var self = this, closure = function(req, res) { self.web(req, res); }; @@ -123,7 +123,7 @@ ProxyServer.prototype.listen = function(port) { this._server.on('upgrade', function(req, socket, head) { self.ws(req, socket, head); }); } - this._server.listen(port); + this._server.listen(port, hostname); return this; };