mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Add remote config to split libsignal-net support for standard vs proxied.
This commit is contained in:
committed by
Cody Henthorne
parent
95ff2886cd
commit
303174c864
@@ -1023,11 +1023,23 @@ object RemoteConfig {
|
||||
value.asLong(8.kibiBytes.inWholeBytes).bytes
|
||||
}
|
||||
|
||||
/** Whether unauthenticated chat web socket is backed by libsignal-net */
|
||||
/** Whether the chat web socket is backed by libsignal for direct connections */
|
||||
@JvmStatic
|
||||
@get:JvmName("libSignalWebSocketEnabled")
|
||||
val libSignalWebSocketEnabled: Boolean by remoteValue(
|
||||
key = "android.libsignalWebSocketEnabled.7",
|
||||
key = "android.libsignalWebSocketEnabled.8",
|
||||
hotSwappable = false
|
||||
) { value ->
|
||||
value.asBoolean(false) || Environment.IS_NIGHTLY
|
||||
}
|
||||
|
||||
/** Whether the chat web socket is backed by libsignal for all connections, including proxied connections.
|
||||
* Note, this does *not* gate HTTP proxies, which are treated as direct connections.
|
||||
* This only has an effect if libSignalWebSocketEnabled is also enabled. */
|
||||
@JvmStatic
|
||||
@get:JvmName("libSignalWebSocketEnabledForProxies")
|
||||
val libSignalWebSocketEnabledForProxies: Boolean by remoteValue(
|
||||
key = "android.libSignalWebSocketEnabledForProxies.8",
|
||||
hotSwappable = false
|
||||
) { value ->
|
||||
value.asBoolean(false) || Environment.IS_NIGHTLY
|
||||
|
||||
Reference in New Issue
Block a user