diff options
author | Martin Holst Swende <martin@swende.se> | 2018-03-05 19:02:32 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-03-05 19:02:32 +0800 |
commit | 478143d69a13103a6809ef41a64b25db8c2438ee (patch) | |
tree | 456ea29d86563aa7265ca8f96b3b389e92115b7e /node/defaults.go | |
parent | abed63c38fe817e73ccbc8f123aee044d10d1711 (diff) | |
download | dexon-478143d69a13103a6809ef41a64b25db8c2438ee.tar dexon-478143d69a13103a6809ef41a64b25db8c2438ee.tar.gz dexon-478143d69a13103a6809ef41a64b25db8c2438ee.tar.bz2 dexon-478143d69a13103a6809ef41a64b25db8c2438ee.tar.lz dexon-478143d69a13103a6809ef41a64b25db8c2438ee.tar.xz dexon-478143d69a13103a6809ef41a64b25db8c2438ee.tar.zst dexon-478143d69a13103a6809ef41a64b25db8c2438ee.zip |
utils: fix #16138 by checking if vhosts flag is set (#16141)
* utils: fix #16138 by checking if vhosts flag is set
* utils,node: fix defaults for rpcvhosts
* node,utils: address review concerns
Diffstat (limited to 'node/defaults.go')
-rw-r--r-- | node/defaults.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/node/defaults.go b/node/defaults.go index d4e148683..887560580 100644 --- a/node/defaults.go +++ b/node/defaults.go @@ -35,11 +35,12 @@ const ( // DefaultConfig contains reasonable default settings. var DefaultConfig = Config{ - DataDir: DefaultDataDir(), - HTTPPort: DefaultHTTPPort, - HTTPModules: []string{"net", "web3"}, - WSPort: DefaultWSPort, - WSModules: []string{"net", "web3"}, + DataDir: DefaultDataDir(), + HTTPPort: DefaultHTTPPort, + HTTPModules: []string{"net", "web3"}, + HTTPVirtualHosts: []string{"localhost"}, + WSPort: DefaultWSPort, + WSModules: []string{"net", "web3"}, P2P: p2p.Config{ ListenAddr: ":30303", MaxPeers: 25, |