Skip to content

Commit

Permalink
[lbry] examples: (lbcdblocknotify) connect to LBCD without TLS
Browse files Browse the repository at this point in the history
  • Loading branch information
roylee17 committed Jan 12, 2022
1 parent 2b7d56b commit 0621254
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rpcclient/examples/lbcdblocknotify/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -78,6 +79,7 @@ func main() {
User: *rpcuser,
Pass: *rpcpass,
Certificates: certs,
DisableTLS: *notls,
}
client, err := rpcclient.New(connCfg, &ntfnHandlers)
if err != nil {
Expand Down

0 comments on commit 0621254

Please sign in to comment.