We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f91baf7 commit 6d4870fCopy full SHA for 6d4870f
lib/modules/whisper/index.js
@@ -2,6 +2,8 @@ let utils = require('../../utils/utils.js');
2
let fs = require('../../core/fs.js');
3
let Web3 = require('web3');
4
5
+const {canonicalHost, defaultHost} = require('../../utils/host');
6
+
7
class Whisper {
8
9
constructor(embark, _options) {
@@ -69,7 +71,7 @@ class Whisper {
69
71
let connection = this.communicationConfig.connection || {};
70
72
// todo: make the add code a function as well
73
let config = JSON.stringify({
- server: connection.host || 'localhost',
74
+ server: canonicalHost(connection.host || defaultHost),
75
port: connection.port || '8546',
76
type: connection.type || 'ws'
77
});
0 commit comments