Update main.c

This commit is contained in:
mmmdbybyd 2019-03-10 15:09:55 +08:00 committed by GitHub
parent c8e79a7fbd
commit 3383ecbbf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
main.c
View File

@ -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':