Move printout

This commit is contained in:
Bjorn Andersson 2006-06-11 14:21:01 +00:00
parent 41330f5f2b
commit ccae5695c0
2 changed files with 1 additions and 1 deletions

1
dns.c
View File

@ -139,6 +139,7 @@ open_dnsd(const char *domain)
}
printf("Opened UDP socket\n");
printf("Listening to dns for domain %s\n", domain);
// Save top domain used
strncpy(topdomain, domain, sizeof(topdomain) - 2);

View File

@ -184,7 +184,6 @@ main(int argc, char **argv)
tun_fd = open_tun();
dnsd_fd = open_dnsd(argv[0]);
printf("Listening to dns for domain %s\n", argv[0]);
if (!foreground) {
daemon(0, 0);