mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43:47 +00:00
utils,node: fix defaults for rpcvhosts
This commit is contained in:
parent
031cdeb129
commit
6a078b51f6
2 changed files with 1 additions and 2 deletions
|
|
@ -697,8 +697,6 @@ func setHTTP(ctx *cli.Context, cfg *node.Config) {
|
|||
}
|
||||
if ctx.GlobalIsSet(RPCVirtualHostsFlag.Name) {
|
||||
cfg.HTTPVirtualHosts = splitAndTrim(ctx.GlobalString(RPCVirtualHostsFlag.Name))
|
||||
} else if len(cfg.HTTPVirtualHosts) == 0 {
|
||||
cfg.HTTPVirtualHosts = splitAndTrim(ctx.GlobalString(RPCVirtualHostsFlag.Name))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ var DefaultConfig = Config{
|
|||
MaxPeers: 25,
|
||||
NAT: nat.Any(),
|
||||
},
|
||||
HTTPVirtualHosts: []string{"localhost"},
|
||||
}
|
||||
|
||||
// DefaultDataDir is the default data directory to use for the databases and other
|
||||
|
|
|
|||
Loading…
Reference in a new issue