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