TODO note about accepting bad SSL certificate

This commit is contained in:
sneurlax 2024-02-02 14:32:55 -06:00
parent 9791d9b362
commit 3c23b0491c

View file

@ -66,12 +66,17 @@ class SubscribableElectrumXClient {
} catch (_) {}
if (_useSSL) {
try {
_socket = await SecureSocket.connect(
host,
port,
timeout: _connectionTimeout,
onBadCertificate: (_) => true,
onBadCertificate: (_) =>
true, // TODO do not automatically trust bad certificates.
);
} catch (e, s) {
print(s);
}
} else {
_socket = await Socket.connect(
host,