From c82aae920aae0616f674fd0e42dc8c286d14d521 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 22 Feb 2019 10:13:35 +0000 Subject: [PATCH] minor change --- mio/lib/dns.c | 2 ++ mio/lib/main.c | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mio/lib/dns.c b/mio/lib/dns.c index ff4a742..580e6c6 100644 --- a/mio/lib/dns.c +++ b/mio/lib/dns.c @@ -304,6 +304,8 @@ static mio_dns_msg_t* build_req_msg (mio_dnsc_t* dnsc, mio_dns_bqr_t* qr, mio_oo ((mio_dns_msg_alt_t*)msg)->rrcount[rr_sect] = mio_hton16(match_count); } +/* TODO: add EDNS0 to request if requested ... + * add EDNS0 to response if request contains it */ /* add EDNS0 OPT RR */ *dn = 0; /* root domain. as if to_dn("") is called */ rrtr = (mio_dns_rrtr_t*)(dn + 1); diff --git a/mio/lib/main.c b/mio/lib/main.c index 9c9979f..a8fdbc7 100644 --- a/mio/lib/main.c +++ b/mio/lib/main.c @@ -758,14 +758,14 @@ int main (int argc, char* argv[]) if (mio_dev_sck_bind(tcp[2], &tcp_bind) <= -1) { - MIO_INFO0 (mio, "tcp[2] mio_dev_sck_bind() failed....\n"); + MIO_INFO1 (mio, "tcp[2] mio_dev_sck_bind() failed - %js\n", mio_geterrmsg(mio)); goto oops; } tcp_lstn.backlogs = 100; if (mio_dev_sck_listen(tcp[2], &tcp_lstn) <= -1) { - MIO_INFO0 (mio, "tcp[2] mio_dev_sck_listen() failed....\n"); + MIO_INFO1 (mio, "tcp[2] mio_dev_sck_listen() failed - %js\n", mio_geterrmsg(mio)); goto oops; } @@ -806,7 +806,6 @@ for (i = 0; i < 5; i++) } #endif - { mio_dnsc_t* dnsc; dnsc = mio_dnsc_start (mio/*, "8.8.8.8:53,1.1.1.1:53"*/); /* option - send to all, send one by one */