Browse Source

remove the error log of incomplete udp packet

pull/525/head
Max Lv 9 years ago
parent
commit
03ac9aa618
1 changed files with 2 additions and 2 deletions
  1. 4
      src/udprelay.c

4
src/udprelay.c

@ -653,7 +653,7 @@ static void remote_recv_cb(EV_P_ ev_io *w, int revents)
#ifdef UDPRELAY_LOCAL
buf = ss_decrypt_all(BUF_SIZE, buf, &buf_len, server_ctx->method, 0);
if (buf == NULL) {
LOGE("[udp] server_ss_decrypt_all");
// drop the packet silently
goto CLEAN_UP;
}
@ -835,7 +835,7 @@ static void server_recv_cb(EV_P_ ev_io *w, int revents)
buf = ss_decrypt_all(BUF_SIZE, buf, &buf_len, server_ctx->method, server_ctx->auth);
if (buf == NULL) {
LOGE("[udp] server_ss_decrypt_all");
// drop the packet silently
goto CLEAN_UP;
}
#endif

Loading…
Cancel
Save