mirror of https://github.com/embarklabs/embark.git
whisper -- canonicalHost, defaultHost
This commit is contained in:
parent
f5b93306be
commit
ed5c2eb71c
|
@ -2,6 +2,8 @@ let utils = require('../../utils/utils.js');
|
|||
let fs = require('../../core/fs.js');
|
||||
let Web3 = require('web3');
|
||||
|
||||
const {canonicalHost, defaultHost} = require('../../utils/host');
|
||||
|
||||
class Whisper {
|
||||
|
||||
constructor(embark, _options) {
|
||||
|
@ -74,7 +76,7 @@ class Whisper {
|
|||
|
||||
// todo: make the add code a function as well
|
||||
let config = JSON.stringify({
|
||||
server: connection.host || 'localhost',
|
||||
server: canonicalHost(connection.host || defaultHost),
|
||||
port: connection.port || '8546',
|
||||
type: connection.type || 'ws'
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue