mirror of https://github.com/M66B/NetGuard.git
Native fixed crash recently introduced
This commit is contained in:
parent
c5f1b3ebd3
commit
2ca17cd4a7
|
@ -502,7 +502,7 @@ void check_sessions(const struct arguments *args) {
|
||||||
if (t->state != TCP_TIME_WAIT && t->state != TCP_CLOSE && t->time + timeout < now) {
|
if (t->state != TCP_TIME_WAIT && t->state != TCP_CLOSE && t->time + timeout < now) {
|
||||||
// TODO send keep alives?
|
// TODO send keep alives?
|
||||||
log_android(ANDROID_LOG_WARN, "Idle %d/%d sec from %s/%u to %s/%u state %s",
|
log_android(ANDROID_LOG_WARN, "Idle %d/%d sec from %s/%u to %s/%u state %s",
|
||||||
now - u->time, timeout,
|
now - t->time, timeout,
|
||||||
source, ntohs(t->source), dest, ntohs(t->dest), strstate(t->state));
|
source, ntohs(t->source), dest, ntohs(t->dest), strstate(t->state));
|
||||||
|
|
||||||
write_rst(args, t);
|
write_rst(args, t);
|
||||||
|
|
Loading…
Reference in New Issue