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:
parent
e876b10ffa
commit
7df8c3f543
1 changed files with 0 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue