Rework the client SNI feedback according to the PR

This commit is contained in:
Julien Viet
2017-04-26 22:05:52 +02:00
parent c06dbd2bdb
commit aaa89d5205
36 changed files with 431 additions and 410 deletions

View File

@@ -630,8 +630,8 @@ public class NetExamples {
.setSsl(true)
);
// Connect to 'localhost' and present 'host1' server name
client.connect(1234, "localhost", "host1", res -> {
// Connect to 'localhost' and present 'server.name' server name
client.connect(1234, "localhost", "server.name", res -> {
if (res.succeeded()) {
System.out.println("Connected!");
NetSocket socket = res.result();