From c4c2c77a40f8f416c6f782e41babdfe31e287015 Mon Sep 17 00:00:00 2001 From: arkpar Date: Thu, 5 Oct 2017 17:20:23 +0200 Subject: [PATCH] Fixed network protocol version negotiation --- util/network/src/session.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/util/network/src/session.rs b/util/network/src/session.rs index dbdf065eb..992081237 100644 --- a/util/network/src/session.rs +++ b/util/network/src/session.rs @@ -511,6 +511,7 @@ impl Session { i += 1; } debug!(target: "network", "Hello: {} v{} {} {:?}", client_version, protocol, id, caps); + let protocol = ::std::cmp::min(protocol, host.protocol_version); self.info.protocol_version = protocol; self.info.client_version = client_version; self.info.capabilities = caps;