Эх сурвалжийг харах

Merge pull request #1736 from nextcloud/SSL_push_notification

fix checkTrustedChallenge [rollback]
Marino Faggiana 3 жил өмнө
parent
commit
a6a715c84f

+ 1 - 9
iOSClient/Networking/NCNetworking.swift

@@ -164,15 +164,7 @@ import Queuer
         let directoryCertificate = CCUtility.getDirectoryCerificates()!
         let directoryCertificateUrl = URL.init(fileURLWithPath: directoryCertificate)
         let host = challenge.protectionSpace.host
-        let hostPushNotification = URL(string: NCBrandOptions.shared.pushNotificationServerProxy)?.host
-        
-        //
-        // TRUSTED push notification proxy server
-        //
-        if host == hostPushNotification {
-            return true
-        }
-        
+    
         if let serverTrust: SecTrust = protectionSpace.serverTrust {
             
             saveX509Certificate(serverTrust, certName: NCGlobal.shared.certificateTmp, directoryCertificate: directoryCertificate)