mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-12 09:32:33 +00:00
fix: wrong socket for old electrum nodes
This commit is contained in:
parent
f61e9b25aa
commit
015bb1ff04
1 changed files with 3 additions and 3 deletions
|
@ -64,11 +64,11 @@ class ElectrumClient {
|
|||
await socket?.close();
|
||||
} catch (_) {}
|
||||
|
||||
if (useSSL == true) {
|
||||
if (useSSL == false) {
|
||||
socket = await Socket.connect(host, port, timeout: connectionTimeout);
|
||||
} else {
|
||||
socket = await SecureSocket.connect(host, port,
|
||||
timeout: connectionTimeout, onBadCertificate: (_) => true);
|
||||
} else {
|
||||
socket = await Socket.connect(host, port, timeout: connectionTimeout);
|
||||
}
|
||||
_setIsConnected(true);
|
||||
|
||||
|
|
Loading…
Reference in a new issue