Skip to content

Commit

Permalink
Merge pull request #2212 from landryraccoon/master
Browse files Browse the repository at this point in the history
Allow changing of ports with an environment variable
  • Loading branch information
jlipps committed Apr 1, 2014
2 parents f16fdba + 2349105 commit e9bd140
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/devices/ios/remote-debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ RemoteDebugger.prototype.connect = function (cb, pageChangeCb) {
}.bind(this));
this.socket.on('data', this.receive.bind(this));

this.socket.connect(27753, '::1', function () {
var port = process.env.REMOTE_DEBUGGER_PORT || 27753;
this.socket.connect(port, '::1', function () {
this.logger.info("Debugger socket connected to " +
this.socket.remoteAddress + ':' + this.socket.remotePort);
this.setConnectionKey(cb);
Expand Down
2 changes: 1 addition & 1 deletion lib/devices/ios/webkit-remote-debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var _ = require('underscore')
var WebKitRemoteDebugger = function (onDisconnect) {
this.dataMethods = {};
this.host = 'localhost';
this.port = 27753;
this.port = process.env.REMOTE_DEBUGGER_PORT || 27753;
this.socketDisconnectCb = null;
this.init(1, onDisconnect);
};
Expand Down

0 comments on commit e9bd140

Please sign in to comment.