Add fix for temporary path building issue

This commit is contained in:
Niels Andriesse 2021-05-03 08:35:15 +10:00
parent 3c68e1bd8c
commit be382a6031
1 changed files with 3 additions and 0 deletions

View File

@ -440,6 +440,9 @@ public enum OnionRequestAPI {
}
} else if let message = json?["result"] as? String, message == "Loki Server error" {
// Do nothing
} else if case .server(let host, _, _, _, _) = destination, host == "116.203.70.33" && statusCode == 0 {
// FIXME: Temporary thing to kick out nodes that can't talk to the V2 OGS yet
handleUnspecificError()
} else if statusCode == 0 { // Timeout
// Do nothing
} else {