Bug 1804690 - Allow emulator to access network of the host machine sidestepping the TLS error on debug channel

fork
rahulsainani 1 year ago committed by mergify[bot]
parent 0e88bfad6b
commit 5a1a6c1b5b

@ -475,6 +475,9 @@ open class FenixApplication : LocaleAwareApplication(), Provider {
@OptIn(DelicateCoroutinesApi::class) // GlobalScope usage
private fun finishSetupMegazord(): Deferred<Unit> {
return GlobalScope.async(Dispatchers.IO) {
if (Config.channel.isDebug) {
RustHttpConfig.allowEmulatorLoopback()
}
RustHttpConfig.setClient(lazy { components.core.client })
// Now viaduct (the RustHttp client) is initialized we can ask Nimbus to fetch

Loading…
Cancel
Save