Fix client connection to 2.0 server.

Fixes #42.
This commit is contained in:
Peter Johnson
2016-01-03 17:54:08 -08:00
parent 620836e1cb
commit 5e2a07d58a

View File

@@ -40,10 +40,6 @@ std::shared_ptr<Message> Message::Read(WireDecoder& decoder,
break;
}
case kServerHelloDone:
if (decoder.proto_rev() < 0x0300u) {
decoder.set_error("received SERVER_HELLO_DONE in protocol < 3.0");
return nullptr;
}
break;
case kServerHello:
if (decoder.proto_rev() < 0x0300u) {