2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00

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

This commit is contained in:
rahulsainani 2022-12-09 11:32:11 +01:00 committed by mergify[bot]
parent d825f3d3c3
commit dcf71a1719

View File

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