Fixed network protocol version negotiation

This commit is contained in:
arkpar 2017-10-05 17:20:23 +02:00
parent 223467c816
commit c4c2c77a40
No known key found for this signature in database
GPG Key ID: CF9ADE6B115EB4DD

View File

@ -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;