refactor: apply review feddback

This commit is contained in:
Sefa Ilkimen
2021-07-15 12:53:12 +02:00
parent bda4eedfb9
commit bbd4cf01ab
3 changed files with 4 additions and 4 deletions
@@ -48,9 +48,9 @@ public class CordovaHttpPlugin extends CordovaPlugin implements Observer {
this.tlsConfiguration.setHostnameVerifier(null);
this.tlsConfiguration.setTrustManagers(tmf.getTrustManagers());
if (this.preferences.contains("androidblacklisttlsprotocols")) {
if (this.preferences.contains("androidblacklistsecuresocketprotocols")) {
this.tlsConfiguration.setBlacklistedProtocols(
this.preferences.getString("androidblacklisttlsprotocols", "").split(",")
this.preferences.getString("androidblacklistsecuresocketprotocols", "").split(",")
);
}