mirror of https://github.com/40t/go-sniffer.git
update
This commit is contained in:
parent
c359375104
commit
02c05cbbb7
|
@ -188,13 +188,12 @@ func (stm *stream) resolve() {
|
|||
for {
|
||||
select {
|
||||
case packet := <- stm.packets:
|
||||
if packet.length == 0 {
|
||||
break
|
||||
}
|
||||
if packet.isClientFlow {
|
||||
stm.resolveClientPacket(packet.payload, packet.seq)
|
||||
} else {
|
||||
stm.resolveServerPacket(packet.payload, packet.seq)
|
||||
if packet.length != 0 {
|
||||
if packet.isClientFlow {
|
||||
stm.resolveClientPacket(packet.payload, packet.seq)
|
||||
} else {
|
||||
stm.resolveServerPacket(packet.payload, packet.seq)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue