Skip to content

Commit

Permalink
fix(dot/node): Start websocket server only with --ws flag (#1671)
Browse files Browse the repository at this point in the history
  • Loading branch information
EclesioMeloJunior authored Jul 6, 2021
1 parent bcc7935 commit 6ecef3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dot/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ func NewNode(cfg *Config, ks *keystore.GlobalKeystore, stopFunc func()) (*Node,
nodeSrvcs = append(nodeSrvcs, sysSrvc)

// check if rpc service is enabled
if enabled := cfg.RPC.Enabled; enabled {
if enabled := cfg.RPC.Enabled || cfg.RPC.WS; enabled {
rpcSrvc := createRPCService(cfg, stateSrvc, coreSrvc, networkSrvc, bp, rt, sysSrvc)
nodeSrvcs = append(nodeSrvcs, rpcSrvc)
} else {
Expand Down

0 comments on commit 6ecef3b

Please sign in to comment.