Send the version when disconnecting because of an invalid auth code.
This commit is contained in:
parent
8175e23f91
commit
0c7354dba6
|
@ -97,6 +97,10 @@ void RemoteClient::ParseMessage(const QByteArray &data) {
|
||||||
void RemoteClient::DisconnectClientWrongAuthCode() {
|
void RemoteClient::DisconnectClientWrongAuthCode() {
|
||||||
pb::remote::Message msg;
|
pb::remote::Message msg;
|
||||||
msg.set_type(pb::remote::DISCONNECT);
|
msg.set_type(pb::remote::DISCONNECT);
|
||||||
|
|
||||||
|
// Send the default version
|
||||||
|
msg->set_version(msg->default_instance().version());
|
||||||
|
|
||||||
msg.mutable_response_disconnect()->set_reason_disconnect(pb::remote::Wrong_Auth_Code);
|
msg.mutable_response_disconnect()->set_reason_disconnect(pb::remote::Wrong_Auth_Code);
|
||||||
SendData(&msg);
|
SendData(&msg);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue