ignore protocol minor version 0
The change from 0 -> 1 included incompatible changes to CMD_BEACON and several others. Ignore any UDP messages (beacon or search), and disconnect any TCP peers, with version==0.
This commit is contained in:
@ -120,6 +120,10 @@ bool processSearchResponse(osiSockAddr const & responseFrom, ByteBuffer & receiv
|
||||
|
||||
// second byte version
|
||||
int8 version = receiveBuffer.getByte();
|
||||
if(version == 0) {
|
||||
// 0 -> 1 included incompatible changes
|
||||
return false;
|
||||
}
|
||||
|
||||
// only data for UDP
|
||||
int8 flags = receiveBuffer.getByte();
|
||||
|
Reference in New Issue
Block a user