mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-05 13:55:54 +03:00
vere: filter ames by protocol #
This commit is contained in:
parent
cf3a64482e
commit
53cec744ba
@ -374,9 +374,9 @@ _ames_recv_cb(uv_udp_t* wax_u,
|
||||
if ( 0 == nrd_i ) {
|
||||
_ames_free(buf_u->base);
|
||||
}
|
||||
// check header's fourth most significant bit to ignore old protocols
|
||||
// check protocol version in header matches 0
|
||||
//
|
||||
else if ( 0 != (1 & (*((c3_w*)buf_u->base) >> 28)) ) {
|
||||
else if ( 0 != (0x7 & *((c3_w*)buf_u->base)) ) {
|
||||
_ames_free(buf_u->base);
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user