fix: counting udp probe packets in sent stats

This commit is contained in:
evilsocket 2018-01-17 17:31:51 +01:00
parent 79130e2669
commit 97c97a668a
2 changed files with 11 additions and 1 deletions

View file

@ -74,6 +74,8 @@ func (q *Queue) worker() {
if q.active == false {
return
}
q.Lock()
pktSize := uint64(len(pkt.Data()))
q.PktReceived++
@ -131,6 +133,8 @@ func (q *Queue) worker() {
q.Traffic[addr].Received += pktSize
}
}
q.Unlock()
}
}