mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 16:24:03 +03:00
Validate hostname if it was found in SNI
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user