Browse Source

fix compatibility issue

pull/66/head
clowwindy 10 years ago
parent
commit
086c9de780
1 changed files with 5 additions and 1 deletions
  1. 6
      src/udprelay.c

6
src/udprelay.c

@ -515,11 +515,15 @@ static void remote_recv_cb (EV_P_ ev_io *w, int revents)
}
int len = parse_udprealy_header(buf, buf_len, NULL, NULL);
if (len == 0 || len != addr_header_len)
if (len == 0)
{
LOGD("[udp] Error in parse header");
// error in parse header
goto CLEAN_UP;
}
// server may return using a different address type other than the type we
// have used during sending
addr_header_len = len;
#ifdef UDPRELAY_TUNNEL
// Construct packet

Loading…
Cancel
Save