deal all auth packet

This commit is contained in:
hebo
2019-11-12 18:34:41 +08:00
parent 2b42cd4b3a
commit 1b0d2c8e91
3 changed files with 25 additions and 11 deletions

View File

@@ -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)
}
}