Skip to content

Commit 7a53ec2

Browse files
committed
Merge pull request #558 from p-a-c-o/master
Extend listen to enable IPv6 support.
2 parents 3e47c24 + 96ea631 commit 7a53ec2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/http-proxy/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function ProxyServer(options) {
111111

112112
require('util').inherits(ProxyServer, EE3);
113113

114-
ProxyServer.prototype.listen = function(port) {
114+
ProxyServer.prototype.listen = function(port, hostname) {
115115
var self = this,
116116
closure = function(req, res) { self.web(req, res); };
117117

@@ -123,7 +123,7 @@ ProxyServer.prototype.listen = function(port) {
123123
this._server.on('upgrade', function(req, socket, head) { self.ws(req, socket, head); });
124124
}
125125

126-
this._server.listen(port);
126+
this._server.listen(port, hostname);
127127

128128
return this;
129129
};

0 commit comments

Comments
 (0)