From abe4001938d637808bd5cca29124a02edff8c51c Mon Sep 17 00:00:00 2001 From: Richard Nyberg Date: Tue, 31 Oct 2006 19:34:25 +0000 Subject: [PATCH] Add initialization of evdns. --- btpd/main.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/btpd/main.c b/btpd/main.c index cabe0d2..5eb40fd 100644 --- a/btpd/main.c +++ b/btpd/main.c @@ -2,13 +2,13 @@ #include #include -#include #include #include +#include +#include #include #include #include -#include #include #include @@ -216,6 +216,12 @@ args_done: event_init(); + if ((errno = evdns_resolv_conf_parse(DNS_OPTION_NAMESERVERS, + "/etc/resolv.conf")) != 0) { + btpd_log(BTPD_L_ERROR, + "failed to setup dns from /etc/resolv.conf (%d).\n", errno); + } + btpd_init(); event_dispatch();