From 73a1b7c94a4bb88aff7e5653280fa870ae106eef Mon Sep 17 00:00:00 2001 From: Roy Lee Date: Tue, 11 Jan 2022 23:13:56 -0800 Subject: [PATCH] [lbry] examples: (lbcdblocknotify) connect to LBCD without TLS --- rpcclient/examples/lbcdblocknotify/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpcclient/examples/lbcdblocknotify/main.go b/rpcclient/examples/lbcdblocknotify/main.go index 591ab731..431331ee 100644 --- a/rpcclient/examples/lbcdblocknotify/main.go +++ b/rpcclient/examples/lbcdblocknotify/main.go @@ -49,6 +49,7 @@ func main() { rpcserver = flag.String("rpcserver", "localhost:9245", "LBCD RPC server") rpcuser = flag.String("rpcuser", "rpcuser", "LBCD RPC username") rpcpass = flag.String("rpcpass", "rpcpass", "LBCD RPC password") + notls = flag.Bool("notls", false, "Connect to LBCD with TLS disabled") ) flag.Parse() @@ -78,6 +79,7 @@ func main() { User: *rpcuser, Pass: *rpcpass, Certificates: certs, + DisableTLS: *notls, } client, err := rpcclient.New(connCfg, &ntfnHandlers) if err != nil {