Browse Source

Merge pull request #496 from kery/issue_495

Fix #495
pull/498/head
Max Lv 9 years ago
parent
commit
96690ea08c
1 changed files with 4 additions and 0 deletions
  1. 4
      src/udprelay.c

4
src/udprelay.c

@ -1006,7 +1006,11 @@ static void server_recv_cb(EV_P_ ev_io *w, int revents)
}
char *addr_header = buf->array + offset;
#ifdef MODULE_LOCAL
char *key = hash_key(server_ctx->remote_addr->sa_family, &src_addr);
#else
char *key = hash_key(dst_addr.ss_family, &src_addr);
#endif
#endif
struct cache *conn_cache = server_ctx->conn_cache;

Loading…
Cancel
Save