Browse Source

refine addr_header comparison

pull/2206/head
Max Lv 9 years ago
parent
commit
3840cf62dc
1 changed files with 2 additions and 1 deletions
  1. 3
      src/udprelay.c

3
src/udprelay.c

@ -791,7 +791,8 @@ static void server_recv_cb(EV_P_ ev_io *w, int revents)
if (remote_ctx != NULL) {
if (memcmp(&src_addr, &remote_ctx->src_addr, sizeof(src_addr))
|| strcmp(addr_header, remote_ctx->addr_header) != 0) {
|| remote_ctx->addr_header_len != addr_header_len
|| memcmp(addr_header, remote_ctx->addr_header, addr_header_len) != 0) {
remote_ctx = NULL;
}
}

Loading…
Cancel
Save