Update main.c
This commit is contained in:
parent
c8e79a7fbd
commit
3383ecbbf7
2
main.c
2
main.c
@ -102,7 +102,7 @@ static void initializate(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
dnsAddr.sin_addr.s_addr = inet_addr(optarg);
|
dnsAddr.sin_addr.s_addr = inet_addr(optarg);
|
||||||
close(dnsFd);
|
close(dnsFd);
|
||||||
dns_connect(dnsFd, (struct sockaddr *)&dnsAddr, sizeof(dnsAddr));
|
dns_connect(&dnsAddr);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'l':
|
case 'l':
|
||||||
|
Loading…
Reference in New Issue
Block a user