From e4cb443618af92f8bf151e12e493693939971325 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Thu, 15 Aug 2024 18:18:41 +0200 Subject: [PATCH] remove error outbound Signed-off-by: Kristoffer Dalby --- net/tstun/wrap.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/net/tstun/wrap.go b/net/tstun/wrap.go index 17cc3b847..3d0c78216 100644 --- a/net/tstun/wrap.go +++ b/net/tstun/wrap.go @@ -927,9 +927,6 @@ func (t *Wrapper) Read(buffs [][]byte, sizes []int, offset int) (int, error) { if !t.disableFilter { response := t.filterPacketOutboundToWireGuard(p, pc) if response != filter.Accept { - metricOutboundDroppedPacketsTotal.Add(dropPacketLabel{ - Reason: DropReasonError, - }, 1) metricPacketOutDrop.Add(1) continue } @@ -1186,9 +1183,6 @@ func (t *Wrapper) Write(buffs [][]byte, offset int) (int, error) { if !t.disableFilter { if t.filterPacketInboundFromWireGuard(p, captHook, pc) != filter.Accept { metricPacketInDrop.Add(1) - metricInboundDroppedPacketsTotal.Add(dropPacketLabel{ - Reason: DropReasonError, - }, 1) } else { buffs[i] = buff i++