@ -60,7 +60,7 @@ void flush_dns_cache() {
exit(EXIT_FAILURE);
}
DnsFlushResolverCache = GetProcAddress(dnsapi, "DnsFlushResolverCache");
DnsFlushResolverCache = (void*)GetProcAddress(dnsapi, "DnsFlushResolverCache");
if (DnsFlushResolverCache == NULL || !DnsFlushResolverCache())
printf("Can't flush DNS cache!");
FreeLibrary(dnsapi);
@ -326,7 +326,8 @@ int main(int argc, char *argv[]) {
printf("Port parameter error!\n");
add_filter_str(IPPROTO_TCP, i);
if (i != 80 && i != 443)
i = 0;
break;
case 'd':