@@ -35,7 +35,7 @@ function Local(){
3535 if ( typeof options [ 'onlyCommand' ] !== 'undefined' )
3636 return ;
3737
38- const binaryPath = this . getBinaryPath ( ) ;
38+ const binaryPath = this . getBinaryPath ( null , options [ 'bs-host' ] ) ;
3939 that . binaryPath = binaryPath ;
4040 childProcess . exec ( 'echo "" > ' + that . logfile ) ;
4141 that . opcode = 'start' ;
@@ -123,7 +123,7 @@ function Local(){
123123 callback ( ) ;
124124 }
125125 } ) ;
126- } ) ;
126+ } , options [ 'bs-host' ] ) ;
127127 } ;
128128
129129 this . isRunning = function ( ) {
@@ -249,7 +249,7 @@ function Local(){
249249 }
250250 } ;
251251
252- this . getBinaryPath = function ( callback ) {
252+ this . getBinaryPath = function ( callback , bsHost ) {
253253 if ( typeof ( this . binaryPath ) == 'undefined' ) {
254254 this . binary = new LocalBinary ( ) ;
255255 var conf = { } ;
@@ -261,9 +261,9 @@ function Local(){
261261 conf . useCaCertificate = this . useCaCertificate ;
262262 }
263263 if ( ! callback ) {
264- return this . binary . binaryPath ( conf , this . key , this . retriesLeft ) ;
264+ return this . binary . binaryPath ( conf , bsHost , this . key , this . retriesLeft ) ;
265265 }
266- this . binary . binaryPath ( conf , this . key , this . retriesLeft , callback ) ;
266+ this . binary . binaryPath ( conf , bsHost , this . key , this . retriesLeft , callback ) ;
267267 } else {
268268 console . log ( 'BINARY PATH IS DEFINED' ) ;
269269 if ( ! callback ) {
0 commit comments