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() {
|
||||
pb::remote::Message msg;
|
||||
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);
|
||||
SendData(&msg);
|
||||
|
||||
|
|
Loading…
Reference in New Issue