Merge pull request #37 from marceloeloelo/support_ip_config
Add support for configurable server ip address
This commit is contained in:
commit
7385bc0eff
@ -281,8 +281,13 @@ PeerServer.prototype._initializeHTTP = function() {
|
|||||||
|
|
||||||
this._app.post(this._options.path + ':key/:id/:token/leave', handle);
|
this._app.post(this._options.path + ':key/:id/:token/leave', handle);
|
||||||
|
|
||||||
// Listen on user-specified port.
|
//Listen on user-specified port and ip address.
|
||||||
this._app.listen(this._options.port);
|
if (this._options.ip) {
|
||||||
|
this._app.listen(this._options.port, this._options.ip);
|
||||||
|
} else {
|
||||||
|
this._app.listen(this._options.port);
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Saves a streaming response and takes care of timeouts and headers. */
|
/** Saves a streaming response and takes care of timeouts and headers. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user