mirror of
https://github.com/M66B/NetGuard.git
synced 2025-01-04 06:23:04 +00:00
Disable ICMP unreachable
This commit is contained in:
parent
90d743c7e3
commit
3cb9b79bf9
1 changed files with 24 additions and 23 deletions
|
@ -264,6 +264,7 @@ void check_tcp_socket(const struct arguments *args,
|
|||
write_rst(args, &s->tcp);
|
||||
|
||||
// Connection refused
|
||||
if (0)
|
||||
if (err >= 0 && (serr == ECONNREFUSED || serr == EHOSTUNREACH)) {
|
||||
struct icmp icmp;
|
||||
memset(&icmp, 0, sizeof(struct icmp));
|
||||
|
|
Loading…
Reference in a new issue