Skip to content

Commit ca468c5

Browse files
committed
Add missing hostname verification algorithm in TCP SSL example
1 parent 8d108b7 commit ca468c5

File tree

1 file changed

+4
-1
lines changed
  • core-examples/src/main/java/io/vertx/example/core/net/echossl

1 file changed

+4
-1
lines changed

core-examples/src/main/java/io/vertx/example/core/net/echossl/Client.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ public static void main(String[] args) {
1818
@Override
1919
public Future<?> start() throws Exception {
2020

21-
NetClientOptions options = new NetClientOptions().setSsl(true).setTrustAll(true);
21+
NetClientOptions options = new NetClientOptions()
22+
.setSsl(true)
23+
.setTrustAll(true)
24+
.setHostnameVerificationAlgorithm("");
2225

2326
vertx
2427
.createNetClient(options).connect(1234, "localhost")

0 commit comments

Comments
 (0)