Suppress UD against production service to avoid de-registration.

pull/1/head
Matthew Chen 7 years ago
parent a5655649d6
commit 960b4f537d

@ -1024,6 +1024,13 @@ NSString *const kNSNotification_OWSWebSocketStateDidChange = @"kNSNotification_O
}
#endif
#ifndef UD_ENABLED
if (self.webSocketType == OWSWebSocketTypeUD) {
OWSLogWarn(@"Suppressing UD socket in prod.");
return;
}
#endif
if (!AppReadiness.isAppReady) {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{

@ -37,10 +37,11 @@ typedef NS_ENUM(NSInteger, TSWhisperMessageType) {
//#define contactDiscoveryURL @"https://api.directory.signal.org"
//// TODO: The production value is not yet known.
//#define kUDTrustRoot @"BbqY1DzohE4NUZoVF+L18oUPrK3kILllLEJh2UnPSsEx"
////#define UD_ENABLED
//#else
//
//// Staging
// Staging
#define textSecureWebSocketAPI @"wss://textsecure-service-staging.whispersystems.org/v1/websocket/"
#define textSecureServerURL @"https://textsecure-service-staging.whispersystems.org/"
#define textSecureCDNServerURL @"https://cdn-staging.signal.org"
@ -48,7 +49,8 @@ typedef NS_ENUM(NSInteger, TSWhisperMessageType) {
#define textSecureCDNReflectorHost @"meek-signal-cdn-staging.appspot.com";
#define contactDiscoveryURL @"https://api-staging.directory.signal.org"
#define kUDTrustRoot @"BbqY1DzohE4NUZoVF+L18oUPrK3kILllLEJh2UnPSsEx"
//
#define UD_ENABLED
//#endif
#define textSecureAccountsAPI @"v1/accounts"

Loading…
Cancel
Save