Skip to content

Commit eaa47df

Browse files
authored
Merge pull request osheroff#39 from wjlow/master
Set DefaultSSLSocketFactory to TLSv1.2 in line with JDK 11.0.11:
2 parents 5c911b6 + 4771a48 commit eaa47df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/github/shyiko/mysql/binlog/network/DefaultSSLSocketFactory.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ public class DefaultSSLSocketFactory implements SSLSocketFactory {
3030
private final String protocol;
3131

3232
public DefaultSSLSocketFactory() {
33-
this("TLSv1");
33+
this("TLSv1.2");
3434
}
3535

3636
/**
37-
* @param protocol TLSv1, TLSv1.1 or TLSv1.2 (the last two require JDK 7+)
37+
* @param protocol TLSv1, TLSv1.1 or TLSv1.2. Since JDK 11.0.11, TLSv1 and TLSv1.1 are no longer supported.
3838
*/
3939
public DefaultSSLSocketFactory(String protocol) {
4040
this.protocol = protocol;

0 commit comments

Comments
 (0)