Small fix for dnsredir

This commit is contained in:
ValdikSS 2017-12-10 20:44:50 +03:00
parent 064cf575b6
commit 81718f1a53
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -326,7 +326,8 @@ int main(int argc, char *argv[]) {
printf("Port parameter error!\n");
exit(EXIT_FAILURE);
}
add_filter_str(IPPROTO_TCP, i);
if (i != 80 && i != 443)
add_filter_str(IPPROTO_TCP, i);
i = 0;
break;
case 'd':