Make the DNSPort option work with libevent 2.x
commit408a828b1f12462f7a31a5d84bcfa38399173b3e
authorSebastian Hahn <sebastian@torproject.org>
Fri, 19 Feb 2010 16:19:33 +0000 (19 17:19 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Fri, 19 Feb 2010 21:36:53 +0000 (19 22:36 +0100)
tree21dac2d6ce48e7e36c0bd3034c34806e4f2122bc
parent0bd6cb31edbd33764c8d24dc3e79b8a7ca9eba84
Make the DNSPort option work with libevent 2.x

We need to use evdns_add_server_port_with_base() when configuring
our DNS listener, because libevent segfaults otherwise. Add a macro
in compat_libevent.h to pick the correct implementation depending
on the libevent version.

Fixes bug 1143, found by SwissTorExit
ChangeLog
src/common/compat_libevent.h
src/or/dnsserv.c