mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 09:50:08 +01:00
Show info when JSON-RPC is not available
This commit is contained in:
parent
2a753ae9c7
commit
55e0d5c298
@ -684,6 +684,7 @@ func loadConfig() (*config, []string, error) {
|
||||
if (cfg.RPCUser == "" || cfg.RPCPass == "") &&
|
||||
(cfg.RPCLimitUser == "" || cfg.RPCLimitPass == "") {
|
||||
cfg.DisableRPC = true
|
||||
btcdLog.Infof("JSON-RPC interface is disabled")
|
||||
}
|
||||
|
||||
// Default RPC to listen on localhost only.
|
||||
|
Loading…
Reference in New Issue
Block a user