diff --git a/kernel-module/xt_RTPENGINE.c b/kernel-module/xt_RTPENGINE.c index ccba89e58..cf016e21e 100644 --- a/kernel-module/xt_RTPENGINE.c +++ b/kernel-module/xt_RTPENGINE.c @@ -4568,10 +4568,10 @@ not_stun: src_check_ok: if (g->target.dtls && is_dtls(skb)) goto skip1; - if (g->target.non_forwarding) { + if (g->target.non_forwarding && !g->target.do_intercept) { if (g->target.blackhole) - error_nf_action = NF_DROP; - goto skip1; + goto do_stats; // and drop + goto skip1; // pass to userspace } rtp.ok = 0; @@ -4714,6 +4714,7 @@ no_intercept: } } +do_stats: if (atomic64_read(&g->stats_in.packets)==0) atomic_set(&g->stats_in.tos,in_tos);