From 65a6847c3ecb7a4e6667fc81cea576b688e480a3 Mon Sep 17 00:00:00 2001 From: Bjorn Andersson Date: Tue, 6 Jun 2006 02:39:37 +0000 Subject: [PATCH] cleanup in dnstun.c --- dnstun.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dnstun.c b/dnstun.c index 2d75004..9b763d8 100644 --- a/dnstun.c +++ b/dnstun.c @@ -67,9 +67,8 @@ tunnel(int tun_fd, int dns_fd) } FD_ZERO(&fds); - if (!dns_sending()) { + if (!dns_sending()) FD_SET(tun_fd, &fds); - } FD_SET(dns_fd, &fds); i = select(MAX(tun_fd, dns_fd) + 1, &fds, NULL, NULL, &tv); @@ -87,7 +86,6 @@ tunnel(int tun_fd, int dns_fd) if(FD_ISSET(tun_fd, &fds)) { read = read_tun(tun_fd, frame, FRAMESIZE); if (read > 0) { - printf("%04x\n", frame->proto); printf("Got data on tun! %d bytes\n", read); dns_handle_tun(dns_fd, frame->data, read - 4); }