summaryrefslogtreecommitdiff
path: root/src/conntrack.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conntrack.c')
-rw-r--r--src/conntrack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conntrack.c b/src/conntrack.c
index 9602e2e..f0c47db 100644
--- a/src/conntrack.c
+++ b/src/conntrack.c
@@ -1042,7 +1042,7 @@ filter_nat(const struct nf_conntrack *obj, const struct nf_conntrack *ct)
else if (options & CT_OPT_DST_NAT)
return !has_dstnat;
- return 0;
+ return (options & (CT_OPT_SRC_NAT | CT_OPT_DST_NAT)) ? 1 : 0;
}
static int counter;