Skip to content

Commit 22fe12f

Browse files
committed
update README
1 parent 8c29b2e commit 22fe12f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,12 @@ Use custom SSL settings:
127127
```java
128128
// default SSLContext for all sockets
129129
IO.setDefaultSSLContext(mySSLContext);
130+
IO.setDefaultHostnameVerifier(myHostnameVerifier);
130131

131132
// set as an option
132133
opts = new IO.Options();
133134
opts.sslContext = mySSLContext;
135+
opts.hostnameVerifier = myHostnameVerifier;
134136
socket = IO.socket("https://localhost", opts);
135137
```
136138

0 commit comments

Comments
 (0)