mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-26 03:26:26 -08:00
remove error outbound
Signed-off-by: Kristoffer Dalby <[email protected]>
This commit is contained in:
1 file changed
-6
@@ -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++
|
||||
|
||||
Reference in new issue
Block a user