mirror of https://github.com/40t/go-sniffer.git
Merge branch 'master' of github.com:40t/go-sniffer
This commit is contained in:
commit
43a106b442
|
@ -25,6 +25,7 @@ $ go-sniffer en0 mysql
|
|||
## Setup:
|
||||
- support : `MacOS` `Linux` `Unix`
|
||||
- not support : `windows`
|
||||
- If you encounter problems in the `go get` process, try upgrading the go version (如果go get 过程中遇到问题,请尝试升级go版本)
|
||||
|
||||
### Centos
|
||||
``` bash
|
||||
|
@ -36,7 +37,7 @@ $ apt-get install libpcap-dev
|
|||
```
|
||||
### MacOs
|
||||
``` bash
|
||||
All is ok
|
||||
|
||||
```
|
||||
### RUN
|
||||
``` bash
|
||||
|
|
|
@ -218,6 +218,9 @@ func (stm *stream) findStmtPacket(srv chan *packet, seq int) *packet {
|
|||
func (stm *stream) resolveServerPacket(payload []byte, seq int) {
|
||||
|
||||
var msg = ""
|
||||
if len(payload) == 0 {
|
||||
return
|
||||
}
|
||||
switch payload[0] {
|
||||
|
||||
case 0xff:
|
||||
|
|
Loading…
Reference in New Issue