mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-22 03:58:48 +00:00
Use a simple check to verify proxies during registration.
This commit is contained in:
@@ -632,6 +632,10 @@ public class SignalServiceAccountManager {
|
||||
return this.pushServiceSocket.getTurnServerInfo();
|
||||
}
|
||||
|
||||
public void checkNetworkConnection() throws IOException {
|
||||
this.pushServiceSocket.pingStorageService();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The avatar URL path, if one was written.
|
||||
*/
|
||||
|
||||
@@ -885,6 +885,10 @@ public class PushServiceSocket {
|
||||
}
|
||||
}
|
||||
|
||||
public void pingStorageService() throws IOException {
|
||||
makeStorageRequest(null, "/ping", "GET", null);
|
||||
}
|
||||
|
||||
public RemoteConfigResponse getRemoteConfig() throws IOException {
|
||||
String response = makeServiceRequest("/v1/config", "GET", null);
|
||||
return JsonUtil.fromJson(response, RemoteConfigResponse.class);
|
||||
|
||||
Reference in New Issue
Block a user