chore_: override DNS for iOS as well (#5093)
We need to apply the DNS override hack for iOS as well. This PR -> https://github.com/status-im/status-mobile/pull/19798 in status-mobile fixes the DNS resolution issue for iOS ARM Simulators and for Android x86 Emulators. But we still need this change to ensure storenodes are found on real iOS devices and on Android arm Emulators.
This commit is contained in:
parent
12d2a1ac2d
commit
1551c98f96
|
@ -28,7 +28,7 @@ const defaultBackoff = 10 * time.Second
|
||||||
const graylistBackoff = 3 * time.Minute
|
const graylistBackoff = 3 * time.Minute
|
||||||
const isAndroidEmulator = runtime.GOOS == "android" && runtime.GOARCH == "amd64"
|
const isAndroidEmulator = runtime.GOOS == "android" && runtime.GOARCH == "amd64"
|
||||||
const findNearestMailServer = !isAndroidEmulator
|
const findNearestMailServer = !isAndroidEmulator
|
||||||
const overrideDNS = runtime.GOOS == "android"
|
const overrideDNS = runtime.GOOS == "android" || runtime.GOOS == "ios"
|
||||||
const bootstrapDNS = "8.8.8.8:53"
|
const bootstrapDNS = "8.8.8.8:53"
|
||||||
|
|
||||||
func (m *Messenger) mailserversByFleet(fleet string) []mailservers.Mailserver {
|
func (m *Messenger) mailserversByFleet(fleet string) []mailservers.Mailserver {
|
||||||
|
|
Loading…
Reference in New Issue