node,utils: address review concerns

This commit is contained in:
Martin Holst Swende 2018-03-05 11:38:10 +01:00
parent 6a078b51f6
commit 5856850b6a
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0
2 changed files with 7 additions and 7 deletions

View file

@ -400,7 +400,7 @@ var (
RPCVirtualHostsFlag = cli.StringFlag{
Name: "rpcvhosts",
Usage: "Comma separated list of virtual hostnames from which to accept requests (server enforced). Accepts '*' wildcard.",
Value: "localhost",
Value: strings.Join(node.DefaultConfig.HTTPVirtualHosts, ","),
}
RPCApiFlag = cli.StringFlag{
Name: "rpcapi",

View file

@ -38,6 +38,7 @@ var DefaultConfig = Config{
DataDir: DefaultDataDir(),
HTTPPort: DefaultHTTPPort,
HTTPModules: []string{"net", "web3"},
HTTPVirtualHosts: []string{"localhost"},
WSPort: DefaultWSPort,
WSModules: []string{"net", "web3"},
P2P: p2p.Config{
@ -45,7 +46,6 @@ var DefaultConfig = Config{
MaxPeers: 25,
NAT: nat.Any(),
},
HTTPVirtualHosts: []string{"localhost"},
}
// DefaultDataDir is the default data directory to use for the databases and other