mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-20 05:46:44 +00:00
Work on review comments
https://github.com/btcsuite/btcd/pull/1007#discussion_r133563489
This commit is contained in:
parent
55e0d5c298
commit
2804f4cffe
@ -684,7 +684,10 @@ func loadConfig() (*config, []string, error) {
|
|||||||
if (cfg.RPCUser == "" || cfg.RPCPass == "") &&
|
if (cfg.RPCUser == "" || cfg.RPCPass == "") &&
|
||||||
(cfg.RPCLimitUser == "" || cfg.RPCLimitPass == "") {
|
(cfg.RPCLimitUser == "" || cfg.RPCLimitPass == "") {
|
||||||
cfg.DisableRPC = true
|
cfg.DisableRPC = true
|
||||||
btcdLog.Infof("JSON-RPC interface is disabled")
|
}
|
||||||
|
|
||||||
|
if cfg.DisableRPC {
|
||||||
|
btcdLog.Infof("RPC service is disabled")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default RPC to listen on localhost only.
|
// Default RPC to listen on localhost only.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user