Show info when JSON-RPC is not available

This commit is contained in:
Anatoli Babenia 2017-08-16 23:08:53 +03:00 committed by Dave Collins
parent 2a753ae9c7
commit 55e0d5c298

View file

@ -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.