Run and log an extra reachability check on app launch

This commit is contained in:
Jordan Rose
2025-12-03 10:42:52 -08:00
parent e6222a09d0
commit 0f66c10ddc

View File

@@ -57,6 +57,9 @@ public class NetworkManager: NetworkManagerProtocol {
appReadiness.runNowOrWhenAppDidBecomeReadyAsync {
// We did this once already, but doing it properly depends on RemoteConfig.
self.resetLibsignalNetProxySettings()
// This is redundant with the instance in ReachabilityManager, but that's ok.
let reachability = Reachability.forInternetConnection()!
Logger.info("Initial preferred network: \(reachability.currentReachabilityString()!)")
}
} else {
self.reachabilityDidChangeObserver = nil