From 3383ecbbf711febeb5d07076ec43c6df7106909c Mon Sep 17 00:00:00 2001 From: mmmdbybyd <915445800@qq.com> Date: Sun, 10 Mar 2019 15:09:55 +0800 Subject: [PATCH] Update main.c --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 1664632..833597d 100644 --- a/main.c +++ b/main.c @@ -102,7 +102,7 @@ static void initializate(int argc, char **argv) } dnsAddr.sin_addr.s_addr = inet_addr(optarg); close(dnsFd); - dns_connect(dnsFd, (struct sockaddr *)&dnsAddr, sizeof(dnsAddr)); + dns_connect(&dnsAddr); break; case 'l':