Skip to content

Commit

Permalink
rpcserver: skip generating certs when nolisten set
Browse files Browse the repository at this point in the history
  • Loading branch information
jolan committed Nov 28, 2017
1 parent c75eb02 commit 664ccfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -6355,7 +6355,7 @@ func newRPCServer(listenAddrs []string, policy *mining.Policy, s *server) (*rpcS

// Setup TLS if not disabled.
listenFunc := net.Listen
if !cfg.DisableTLS {
if !cfg.DisableListen && !cfg.DisableTLS {
// Generate the TLS cert and key file if both don't already
// exist.
if !fileExists(cfg.RPCKey) && !fileExists(cfg.RPCCert) {
Expand Down

0 comments on commit 664ccfc

Please sign in to comment.