Skip to content

Commit 9e7bc53

Browse files
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`.
1 parent d840198 commit 9e7bc53

File tree

1 file changed

+2
-2
lines changed
  • src/lib/modules/blockchain_process

1 file changed

+2
-2
lines changed

src/lib/modules/blockchain_process/proxy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require('./httpProxyOverride');
44
const Asm = require('stream-json/Assembler');
5-
const {canonicalHost, defaultHost} = require('../../utils/host');
5+
const {canonicalHost} = require('../../utils/host');
66
const constants = require('../../constants.json');
77
const {Duplex} = require('stream');
88
const http = require('http');
@@ -237,7 +237,7 @@ class Proxy {
237237
return new Promise(resolve => {
238238
server.listen(
239239
port - constants.blockchain.servicePortOnProxy,
240-
defaultHost,
240+
host,
241241
() => { resolve(server); }
242242
);
243243
});

0 commit comments

Comments
 (0)