File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ let shelljs = require('shelljs');
22let proxy = require ( '../core/proxy' ) ;
33const Ipc = require ( '../core/ipc' ) ;
44const constants = require ( '../constants.json' ) ;
5+ const { defaultHost, dockerHostSwap} = require ( '../utils/host' ) ;
56
67class Simulator {
78 constructor ( options ) {
@@ -21,7 +22,7 @@ class Simulator {
2122 }
2223
2324 let useProxy = this . blockchainConfig . proxy || false ;
24- let host = ( options . host || this . blockchainConfig . rpcHost || 'localhost' ) ;
25+ let host = ( dockerHostSwap ( options . host || this . blockchainConfig . rpcHost ) || defaultHost ) ;
2526 let port = ( options . port || this . blockchainConfig . rpcPort || 8545 ) ;
2627
2728 cmds . push ( "-p " + ( port + ( useProxy ? constants . blockchain . servicePortOnProxy : 0 ) ) ) ;
You can’t perform that action at this time.
0 commit comments