Show info when JSON-RPC is not available
This commit is contained in:
parent
2a753ae9c7
commit
55e0d5c298
1 changed files with 1 additions and 0 deletions
|
@ -684,6 +684,7 @@ 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")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default RPC to listen on localhost only.
|
// Default RPC to listen on localhost only.
|
||||||
|
|
Loading…
Add table
Reference in a new issue