update README
This commit is contained in:
@@ -96,10 +96,12 @@ Use custom SSL settings:
|
|||||||
```java
|
```java
|
||||||
// default SSLContext for all sockets
|
// default SSLContext for all sockets
|
||||||
Socket.setDefaultSSLContext(mySSLContext);
|
Socket.setDefaultSSLContext(mySSLContext);
|
||||||
|
Socket.setDefaultHostnameVerifier(myHostnameVerifier);
|
||||||
|
|
||||||
// set as an option
|
// set as an option
|
||||||
opts = new Socket.Options();
|
opts = new Socket.Options();
|
||||||
opts.sslContext = mySSLContext;
|
opts.sslContext = mySSLContext;
|
||||||
|
opts.hostnameVerifier = myHostnameVerifier;
|
||||||
socket = new Socket(opts);
|
socket = new Socket(opts);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user