1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-03-13 19:37:35 +01:00

Remove special ssl rule for electrum with onion address

This rule is redundant. Client app decides what ssl mode is used when
connecting to onion electrum servers. Some users do want to check
certificate when using tor.
This commit is contained in:
dpad85 2020-11-10 18:18:12 +01:00
parent e876b10ffa
commit 7df8c3f543
No known key found for this signature in database
GPG key ID: 574C8C6A1673E987

View file

@ -151,7 +151,6 @@ class Setup(datadir: File,
val port = config.getInt("electrum.port")
val address = InetSocketAddress.createUnresolved(host, port)
val ssl = config.getString("electrum.ssl") match {
case _ if address.getHostName.endsWith(".onion") => SSL.OFF // Tor already adds end-to-end encryption, adding TLS on top doesn't add anything
case "off" => SSL.OFF
case "loose" => SSL.LOOSE
case _ => SSL.STRICT // strict mode is the default when we specify a custom electrum server, we don't want to be MITMed