Skip to content

Commit ac3c39c

Browse files
committed
Update README file for TLS hostname verification.
1 parent 8fffadc commit ac3c39c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.markdown

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ In order to create a client in TLS mode, do the following to initialize the clie
3838
// Create the client in TLS mode
3939
connectionFactoryBuilder.setSSLContext(sslContext);
4040
// TLS mode enables hostname verification by default. It is always recommended to do that.
41+
connectionFactoryBuilder.setHostnameForTlsVerification("my_website.com");
4142
// To disable hostname verification, do the following:
4243
// connectionFactoryBuilder.setSkipTlsHostnameVerification(true);
4344
MemcachedClient client = new MemcachedClient(connectionFactoryBuilder.build(), AddrUtil.getAddresses("my_website.com:11211"));

0 commit comments

Comments
 (0)