Skip to content

Commit 0e85d35

Browse files
qwangseumike.wq
andauthored
fix(#verify host) : verify host (#12)
Co-authored-by: mike.wq <mike.wq@alibaba-inc.com>
1 parent 236f9e6 commit 0e85d35

File tree

12 files changed

+16
-15
lines changed

12 files changed

+16
-15
lines changed

app-stream-api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>open-app-stream-client</artifactId>
77
<groupId>com.dingtalk.open</groupId>
8-
<version>1.3.5</version>
8+
<version>1.3.6</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111
<modelVersion>4.0.0</modelVersion>

app-stream-client/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<parent>
55
<groupId>com.dingtalk.open</groupId>
66
<artifactId>open-app-stream-client</artifactId>
7-
<version>1.3.5</version>
7+
<version>1.3.6</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010

1111
<artifactId>app-stream-client</artifactId>
1212
<packaging>jar</packaging>
13-
<version>1.3.5</version>
13+
<version>1.3.6</version>
1414
<name>app-stream-client</name>
1515

1616
<dependencies>

app-stream-network/app-stream-network-api/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<parent>
55
<groupId>com.dingtalk.open</groupId>
66
<artifactId>app-stream-network</artifactId>
7-
<version>1.3.5</version>
7+
<version>1.3.6</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010

1111
<artifactId>app-stream-network-api</artifactId>
12-
<version>1.3.5</version>
12+
<version>1.3.6</version>
1313
<packaging>jar</packaging>
1414

1515
<name>app-stream-network-api</name>

app-stream-network/app-stream-network-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.dingtalk.open</groupId>
66
<artifactId>app-stream-network</artifactId>
7-
<version>1.3.5</version>
7+
<version>1.3.6</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010

app-stream-network/app-stream-network-rsocket/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.dingtalk.open</groupId>
66
<artifactId>app-stream-network</artifactId>
7-
<version>1.3.5</version>
7+
<version>1.3.6</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010

app-stream-network/app-stream-network-ws/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.dingtalk.open</groupId>
66
<artifactId>app-stream-network</artifactId>
7-
<version>1.3.5</version>
7+
<version>1.3.6</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010

app-stream-network/app-stream-network-ws/src/main/java/com/dingtalk/open/app/stream/network/ws/WebsocketTransportConnector.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ protected void initChannel(SocketChannel socketChannel) throws Exception {
5151
.dropPongFrames(false).webSocketUri(configureWebsocketUri(connection)).handshakeTimeoutMillis(option.getTtl()).dropPongFrames(false).handleCloseFrames(true).build();
5252
SslContext sslContext = SslContextBuilder.forClient().build();
5353
if (connection.getProtocol().isTls()) {
54-
final SSLEngine engine = sslContext.newEngine(socketChannel.alloc());
54+
final SSLEngine engine = sslContext.newEngine(socketChannel.alloc(), connection.getEndPoint().getHost(), connection.getEndPoint().getPort());
5555
final SSLParameters sslParameters = new SSLParameters();
5656
sslParameters.setServerNames(Collections.singletonList(new SNIHostName(connection.getEndPoint().getHost())));
57+
sslParameters.setEndpointIdentificationAlgorithm("HTTPS");
5758
engine.setSSLParameters(sslParameters);
5859
socketChannel.pipeline().addLast(new SslHandler(engine));
5960
}

app-stream-network/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>open-app-stream-client</artifactId>
77
<groupId>com.dingtalk.open</groupId>
8-
<version>1.3.5</version>
8+
<version>1.3.6</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111
<packaging>pom</packaging>

app-stream-protocol/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.dingtalk.open</groupId>
88
<artifactId>open-app-stream-client</artifactId>
9-
<version>1.3.5</version>
9+
<version>1.3.6</version>
1010
</parent>
1111

1212
<artifactId>app-stream-protocol</artifactId>

dingtalk-stream/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<parent>
55
<groupId>com.dingtalk.open</groupId>
66
<artifactId>open-app-stream-client</artifactId>
7-
<version>1.3.5</version>
7+
<version>1.3.6</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010

1111
<artifactId>dingtalk-stream</artifactId>
1212
<packaging>jar</packaging>
13-
<version>1.3.5</version>
13+
<version>1.3.6</version>
1414
<name>app-stream-client</name>
1515

1616
<dependencies>

0 commit comments

Comments
 (0)