mobile: add TLS options to wallet unlocker listener
The wallet unlocker service also requires the TLS certificates to be added, but this was not set. This commit sets the options similar to what is done for the regular RPC server.
This commit is contained in:
parent
a870ed5fb7
commit
f5a9813304
@ -74,6 +74,18 @@ func Start(extraArgs string, unlockerReady, rpcReady Callback) {
|
||||
// callbacks when the RPC servers are ready to accept calls.
|
||||
go func() {
|
||||
<-unlockerListening
|
||||
|
||||
// We must set the TLS certificates in order to properly
|
||||
// authenticate with the wallet unlocker service.
|
||||
auth, err := lnd.WalletUnlockerAuthOptions()
|
||||
if err != nil {
|
||||
unlockerReady.OnError(err)
|
||||
return
|
||||
}
|
||||
|
||||
// Add the auth options to the listener's dial options.
|
||||
addWalletUnlockerLisDialOption(auth...)
|
||||
|
||||
unlockerReady.OnResponse([]byte{})
|
||||
}()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user