Improve network reliability.

This commit is contained in:
Greyson Parrelli
2024-08-26 14:53:08 -04:00
parent e1bc04a811
commit 60ad879cac

View File

@@ -69,6 +69,7 @@ open class SignalServiceNetworkAccess(context: Context) {
private const val COUNTRY_CODE_UZBEKISTAN = 998
private const val COUNTRY_CODE_RUSSIA = 7
private const val COUNTRY_CODE_VENEZUELA = 58
private const val COUNTRY_CODE_PAKISTAN = 92
private const val G_HOST = "reflector-nrgwuv7kwq-uc.a.run.app"
private const val F_SERVICE_HOST = "chat-signal.global.ssl.fastly.net"
@@ -211,6 +212,9 @@ open class SignalServiceNetworkAccess(context: Context) {
COUNTRY_CODE_VENEZUELA to buildGConfiguration(
listOf(HostConfig("https://www.google.co.ve", G_HOST, GMAIL_CONNECTION_SPEC)) + baseGHostConfigs
),
COUNTRY_CODE_PAKISTAN to buildGConfiguration(
listOf(HostConfig("https://www.google.com.pk", G_HOST, GMAIL_CONNECTION_SPEC)) + baseGHostConfigs
),
COUNTRY_CODE_IRAN to fConfig,
COUNTRY_CODE_CUBA to fConfig,
COUNTRY_CODE_RUSSIA to fConfig
@@ -227,7 +231,8 @@ open class SignalServiceNetworkAccess(context: Context) {
COUNTRY_CODE_CUBA,
COUNTRY_CODE_UZBEKISTAN,
COUNTRY_CODE_RUSSIA,
COUNTRY_CODE_VENEZUELA
COUNTRY_CODE_VENEZUELA,
COUNTRY_CODE_PAKISTAN
)
open val uncensoredConfiguration: SignalServiceConfiguration = SignalServiceConfiguration(