mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-25 18:03:50 +00:00
better expose raw ClientHello bytes, fix #4877
This commit is contained in:
parent
f68666d227
commit
9c5bebae9e
@ -16,8 +16,12 @@ class ClientHello:
|
||||
A TLS ClientHello is the first message sent by the client when initiating TLS.
|
||||
"""
|
||||
|
||||
raw_bytes: bytes
|
||||
"""The raw ClientHello bytes as seen on the wire"""
|
||||
|
||||
def __init__(self, raw_client_hello: bytes):
|
||||
"""Create a TLS ClientHello object from raw bytes."""
|
||||
self.raw_bytes = raw_client_hello
|
||||
self._client_hello = tls_client_hello.TlsClientHello(
|
||||
KaitaiStream(io.BytesIO(raw_client_hello))
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user