[lbry] examples: (lbcdblocknotify) connect to LBCD without TLS
This commit is contained in:
parent
2cb03c8c3d
commit
73a1b7c94a
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue