Allow clear text communication (to use local synapse)

This commit is contained in:
Benoit Marty 2020-07-01 13:55:34 +02:00
parent 310517ece4
commit 9eab1acf1e

View File

@ -252,7 +252,8 @@ internal object CertUtil {
builder.supportsTlsExtensions(hsConfig.shouldAcceptTlsExtensions)
val list = ArrayList<ConnectionSpec>()
list.add(builder.build())
if (hsConfig.allowHttpExtension) {
// TODO: we should display a warning if user enter an http url
if (hsConfig.allowHttpExtension || hsConfig.homeServerUri.toString().startsWith("http://")) {
list.add(ConnectionSpec.CLEARTEXT)
}
return list