mirror of
https://github.com/zr-hebo/sniffer-agent.git
synced 2025-09-18 17:56:52 +08:00
deal all auth packet
This commit is contained in:
@@ -24,3 +24,12 @@ func CheckParams() {
|
||||
mysql.CheckParams()
|
||||
}
|
||||
}
|
||||
|
||||
func IsAuthPacket(val byte) bool {
|
||||
switch serviceType {
|
||||
case ServiceTypeMysql:
|
||||
return mysql.IsAuthPacket(val)
|
||||
default:
|
||||
return mysql.IsAuthPacket(val)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user