mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-18 08:36:51 +00:00
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 fs = require('../../core/fs.js');
|
||||||
let Web3 = require('web3');
|
let Web3 = require('web3');
|
||||||
|
|
||||||
|
const {canonicalHost, defaultHost} = require('../../utils/host');
|
||||||
|
|
||||||
class Whisper {
|
class Whisper {
|
||||||
|
|
||||||
constructor(embark, _options) {
|
constructor(embark, _options) {
|
||||||
@ -74,7 +76,7 @@ class Whisper {
|
|||||||
|
|
||||||
// todo: make the add code a function as well
|
// todo: make the add code a function as well
|
||||||
let config = JSON.stringify({
|
let config = JSON.stringify({
|
||||||
server: connection.host || 'localhost',
|
server: canonicalHost(connection.host || defaultHost),
|
||||||
port: connection.port || '8546',
|
port: connection.port || '8546',
|
||||||
type: connection.type || 'ws'
|
type: connection.type || 'ws'
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user