Skip to content

Commit 1f9c01d

Browse files
committed
fix handshaker
1 parent f1be3c6 commit 1f9c01d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/transport/TransportHandshaker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ private static TransportVersion ensureCompatibleVersion(
223223
Object channel
224224
) {
225225
if (TransportVersion.isCompatible(remoteTransportVersion)) {
226-
if (remoteTransportVersion.supports(localTransportVersion)) {
226+
if (remoteTransportVersion.id() >= localTransportVersion.id()) {
227227
// Remote is semantically newer than us (i.e. has a greater transport protocol version), so we propose using our current
228228
// transport protocol version. If we're initiating the connection then that's the version we'll use; if the other end is
229229
// initiating the connection then it's up to the other end to decide whether to use this version (if it knows it) or

0 commit comments

Comments
 (0)