mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-28 03:33:42 +00:00
fix compatibility issue
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user