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

pull/600/head
rahulsainani 2 years ago committed by mergify[bot]
parent d825f3d3c3
commit dcf71a1719

@ -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