From bc69e3cb267577e6cf677600c922570d40a8daba Mon Sep 17 00:00:00 2001 From: Luke Valenta Date: Tue, 10 Nov 2020 15:11:26 -0600 Subject: [PATCH] Use correct TLS extension for ECH --- layers/tls_handshake.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layers/tls_handshake.go b/layers/tls_handshake.go index 3fefacfc8..4094a7eb8 100644 --- a/layers/tls_handshake.go +++ b/layers/tls_handshake.go @@ -21,8 +21,9 @@ const ( // TLS extension numbers const ( - extensionServerName uint16 = 0 - extensionEncryptedClientHello uint16 = 0xff02 + extensionServerName uint16 = 0 + // https://tlswg.org/draft-ietf-tls-esni/draft-ietf-tls-esni.html + extensionEncryptedClientHello uint16 = 0xfe08 ) // TLSHandshakeRecord defines the structure of a Handshare Record