diff --git a/rpcserver.go b/rpcserver.go index 4c6bb55b..a91021a4 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -6366,7 +6366,7 @@ func newRPCServer(listenAddrs []string, policy *mining.Policy, s *server) (*rpcS // Setup TLS if not disabled. listenFunc := net.Listen - if !cfg.DisableListen && !cfg.DisableTLS { + if !cfg.DisableRPC && !cfg.DisableTLS { // Generate the TLS cert and key file if both don't already // exist. if !fileExists(cfg.RPCKey) && !fileExists(cfg.RPCCert) {