Skip to content

Commit 35e2c85

Browse files
authored
node: Enable debug rpc in authrpc if enabled in http (#512)
1 parent acea125 commit 35e2c85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

node/node.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,9 @@ func (n *Node) startRPC() error {
434434
if slices.Contains(n.config.HTTPModules, "miner") {
435435
authModules = append(authModules, "miner")
436436
}
437+
if slices.Contains(n.config.HTTPModules, "debug") {
438+
authModules = append(authModules, "debug")
439+
}
437440

438441
// Enable auth via HTTP
439442
server := n.httpAuth

0 commit comments

Comments
 (0)