Add prints when client and server TLS is disabled.
This commit is contained in:
parent
ac94b3f331
commit
31149b88b9
2 changed files with 4 additions and 0 deletions
|
@ -99,6 +99,8 @@ func walletMain() error {
|
||||||
// with nil certs and without the client connection
|
// with nil certs and without the client connection
|
||||||
certs = nil
|
certs = nil
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
log.Info("Client TLS is disabled")
|
||||||
}
|
}
|
||||||
rpcc, err := chain.NewClient(activeNet.Params, cfg.RPCConnect,
|
rpcc, err := chain.NewClient(activeNet.Params, cfg.RPCConnect,
|
||||||
cfg.BtcdUsername, cfg.BtcdPassword, certs, cfg.DisableClientTLS)
|
cfg.BtcdUsername, cfg.BtcdPassword, certs, cfg.DisableClientTLS)
|
||||||
|
|
|
@ -343,6 +343,8 @@ func newRPCServer(listenAddrs []string, maxPost, maxWebsockets int64) (*rpcServe
|
||||||
listenFunc = func(net string, laddr string) (net.Listener, error) {
|
listenFunc = func(net string, laddr string) (net.Listener, error) {
|
||||||
return tls.Listen(net, laddr, &tlsConfig)
|
return tls.Listen(net, laddr, &tlsConfig)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
log.Info("Server TLS is disabled")
|
||||||
}
|
}
|
||||||
|
|
||||||
ipv4ListenAddrs, ipv6ListenAddrs, err := parseListeners(listenAddrs)
|
ipv4ListenAddrs, ipv6ListenAddrs, err := parseListeners(listenAddrs)
|
||||||
|
|
Loading…
Reference in a new issue