mirror of https://github.com/40t/go-sniffer.git
fix mysql port bug
This commit is contained in:
parent
045f404de9
commit
b7d1ca1b83
|
@ -149,7 +149,7 @@ func (m *Mysql) newPacket(net, transport gopacket.Flow, r io.Reader) *packet {
|
|||
length:payload.Len(),
|
||||
payload:payload.Bytes(),
|
||||
}
|
||||
if transport.Src().String() == strconv.Itoa(Port) {
|
||||
if transport.Src().String() == strconv.Itoa(m.port) {
|
||||
pk.isClientFlow = false
|
||||
}else{
|
||||
pk.isClientFlow = true
|
||||
|
|
Loading…
Reference in New Issue