mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 01:40:07 +01: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 == "") &&
|
||||
(cfg.RPCLimitUser == "" || cfg.RPCLimitPass == "") {
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user