mirror of
https://github.com/ValdikSS/GoodbyeDPI.git
synced 2024-12-22 14:26:08 +00:00
Small fix for dnsredir
This commit is contained in:
parent
064cf575b6
commit
81718f1a53
@ -60,7 +60,7 @@ void flush_dns_cache() {
|
|||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
DnsFlushResolverCache = GetProcAddress(dnsapi, "DnsFlushResolverCache");
|
DnsFlushResolverCache = (void*)GetProcAddress(dnsapi, "DnsFlushResolverCache");
|
||||||
if (DnsFlushResolverCache == NULL || !DnsFlushResolverCache())
|
if (DnsFlushResolverCache == NULL || !DnsFlushResolverCache())
|
||||||
printf("Can't flush DNS cache!");
|
printf("Can't flush DNS cache!");
|
||||||
FreeLibrary(dnsapi);
|
FreeLibrary(dnsapi);
|
||||||
|
@ -326,6 +326,7 @@ int main(int argc, char *argv[]) {
|
|||||||
printf("Port parameter error!\n");
|
printf("Port parameter error!\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
if (i != 80 && i != 443)
|
||||||
add_filter_str(IPPROTO_TCP, i);
|
add_filter_str(IPPROTO_TCP, i);
|
||||||
i = 0;
|
i = 0;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user