Skip to content

Commit d500f34

Browse files
committed
Remove redundant hostname check
1 parent ac10be0 commit d500f34

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ios/MullvadREST/ApiHandlers/SSLPinningURLSessionDelegate.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ final class SSLPinningURLSessionDelegate: NSObject, URLSessionDelegate, @uncheck
3939
var hostName = challenge.protectionSpace.host
4040
// this used to check for the current endpoint in the address cache as well, though this has been deprecated.
4141

42-
if hostName == "\(REST.defaultAPIEndpoint.ip)" {
43-
hostName = sslHostname
44-
}
45-
4642
if verifyServerTrust(serverTrust, for: hostName) {
4743
completionHandler(.useCredential, URLCredential(trust: serverTrust))
4844
return

0 commit comments

Comments
 (0)