Browse Source

Small fix for dnsredir

pull/48/head 0.1.2rc2
ValdikSS 7 years ago
parent
commit
81718f1a53
  1. 2
      dnsredir.c
  2. 3
      goodbyedpi.c

2
dnsredir.c

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

3
goodbyedpi.c

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

Loading…
Cancel
Save