mirror of https://github.com/embarklabs/embark.git
fix(@embark/blockchain_process): proxy listens on the specified host
Change the blockchain proxy so that it listens on the `host` argument passed to `Proxy#serve` rather than on `defaultHost`.
This commit is contained in:
parent
d840198fc1
commit
9e7bc53ebf
|
@ -2,7 +2,7 @@
|
|||
|
||||
require('./httpProxyOverride');
|
||||
const Asm = require('stream-json/Assembler');
|
||||
const {canonicalHost, defaultHost} = require('../../utils/host');
|
||||
const {canonicalHost} = require('../../utils/host');
|
||||
const constants = require('../../constants.json');
|
||||
const {Duplex} = require('stream');
|
||||
const http = require('http');
|
||||
|
@ -237,7 +237,7 @@ class Proxy {
|
|||
return new Promise(resolve => {
|
||||
server.listen(
|
||||
port - constants.blockchain.servicePortOnProxy,
|
||||
defaultHost,
|
||||
host,
|
||||
() => { resolve(server); }
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue