diff --git a/app/src/main/java/com/seafile/seadroid2/ssl/SSLSeafileSocketFactory.java b/app/src/main/java/com/seafile/seadroid2/ssl/SSLSeafileSocketFactory.java index 78403d501..8f940e03c 100644 --- a/app/src/main/java/com/seafile/seadroid2/ssl/SSLSeafileSocketFactory.java +++ b/app/src/main/java/com/seafile/seadroid2/ssl/SSLSeafileSocketFactory.java @@ -102,7 +102,9 @@ public Socket createSocket(String host, int port) throws IOException { protected String[] getProtocolList() { // don't offer SSLv2 or SSLv3 - if (Build.VERSION.SDK_INT >= 16) { + if (Build.VERSION.SDK_INT >= 29) { + return new String[]{ "TLSv1", "TLSv1.1", "TLSv1.2", "TLSv1.3" }; + } else if (Build.VERSION.SDK_INT >= 16) { return new String[]{ "TLSv1", "TLSv1.1", "TLSv1.2" }; } else { return new String[]{ "TLSv1" };