Fixed network protocol version negotiation
This commit is contained in:
parent
223467c816
commit
c4c2c77a40
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user