Refactoring
Refactored Protocol.Name -> Protocol.Type; added Encapsulation field Refactored TLS parsing; added support for ALPN
This commit is contained in:
@@ -49,7 +49,7 @@ func detectMySQL(dir Direction, data []byte, srcPort, dstPort int) (proto *Proto
|
||||
_, _ = fmt.Sscanf(string(data[1:serverVersionEndPos]), "%d.%d.%d-%s", &version.Major, &version.Minor, &version.Patch, &version.Extra)
|
||||
|
||||
return &Protocol{
|
||||
Name: ProtocolMySQL,
|
||||
Type: TypeMySQL,
|
||||
Version: version,
|
||||
}, confidence + .75
|
||||
}
|
||||
|
Reference in New Issue
Block a user