mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-07 16:54:37 +00:00
remove error outbound
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
c74932009a
commit
e4cb443618
@ -927,9 +927,6 @@ func (t *Wrapper) Read(buffs [][]byte, sizes []int, offset int) (int, error) {
|
|||||||
if !t.disableFilter {
|
if !t.disableFilter {
|
||||||
response := t.filterPacketOutboundToWireGuard(p, pc)
|
response := t.filterPacketOutboundToWireGuard(p, pc)
|
||||||
if response != filter.Accept {
|
if response != filter.Accept {
|
||||||
metricOutboundDroppedPacketsTotal.Add(dropPacketLabel{
|
|
||||||
Reason: DropReasonError,
|
|
||||||
}, 1)
|
|
||||||
metricPacketOutDrop.Add(1)
|
metricPacketOutDrop.Add(1)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@ -1186,9 +1183,6 @@ func (t *Wrapper) Write(buffs [][]byte, offset int) (int, error) {
|
|||||||
if !t.disableFilter {
|
if !t.disableFilter {
|
||||||
if t.filterPacketInboundFromWireGuard(p, captHook, pc) != filter.Accept {
|
if t.filterPacketInboundFromWireGuard(p, captHook, pc) != filter.Accept {
|
||||||
metricPacketInDrop.Add(1)
|
metricPacketInDrop.Add(1)
|
||||||
metricInboundDroppedPacketsTotal.Add(dropPacketLabel{
|
|
||||||
Reason: DropReasonError,
|
|
||||||
}, 1)
|
|
||||||
} else {
|
} else {
|
||||||
buffs[i] = buff
|
buffs[i] = buff
|
||||||
i++
|
i++
|
||||||
|
Loading…
x
Reference in New Issue
Block a user