Validate hostname if it was found in SNI

This commit is contained in:
9seconds
2021-03-26 17:23:30 +03:00
parent ce30e128e5
commit 5eca6ecb05
5 changed files with 64 additions and 8 deletions
+3 -1
View File
@@ -7,7 +7,7 @@ const (
ClientHelloRandomOffset = 6
ClientHelloSessionIDOffset = ClientHelloRandomOffset + RandomLen
ClientHelloMinLen = ClientHelloSessionIDOffset + 1
ClientHelloMinLen = 4
WelcomePacketRandomOffset = 11
@@ -15,6 +15,8 @@ const (
HandshakeTypeServer = 0x02
ChangeCipherValue = 0x01
ExtensionSNI = 0x00
)
var (