mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 01:37:54 +00:00
TODO note about accepting bad SSL certificate
This commit is contained in:
parent
9791d9b362
commit
3c23b0491c
1 changed files with 11 additions and 6 deletions
|
@ -66,12 +66,17 @@ class SubscribableElectrumXClient {
|
|||
} catch (_) {}
|
||||
|
||||
if (_useSSL) {
|
||||
_socket = await SecureSocket.connect(
|
||||
host,
|
||||
port,
|
||||
timeout: _connectionTimeout,
|
||||
onBadCertificate: (_) => true,
|
||||
);
|
||||
try {
|
||||
_socket = await SecureSocket.connect(
|
||||
host,
|
||||
port,
|
||||
timeout: _connectionTimeout,
|
||||
onBadCertificate: (_) =>
|
||||
true, // TODO do not automatically trust bad certificates.
|
||||
);
|
||||
} catch (e, s) {
|
||||
print(s);
|
||||
}
|
||||
} else {
|
||||
_socket = await Socket.connect(
|
||||
host,
|
||||
|
|
Loading…
Reference in a new issue