Don't return zero-length packets when receiving multicast loopback packets.
This commit is contained in:
parent
2faf3e91af
commit
fe1d0043c8
1 changed files with 1 additions and 2 deletions
|
@ -171,8 +171,7 @@ static bool read_packet(vpn_packet_t *packet) {
|
||||||
|
|
||||||
if(!memcmp(&ignore_src, packet->data + 6, sizeof ignore_src)) {
|
if(!memcmp(&ignore_src, packet->data + 6, sizeof ignore_src)) {
|
||||||
logger(DEBUG_SCARY_THINGS, LOG_DEBUG, "Ignoring loopback packet of %d bytes from %s", lenin, device_info);
|
logger(DEBUG_SCARY_THINGS, LOG_DEBUG, "Ignoring loopback packet of %d bytes from %s", lenin, device_info);
|
||||||
packet->len = 0;
|
return false;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
packet->len = lenin;
|
packet->len = lenin;
|
||||||
|
|
Loading…
Add table
Reference in a new issue