mirror of
https://github.com/ehang-io/nps.git
synced 2025-07-02 04:00:42 +00:00
Https error
This commit is contained in:
parent
6a978515ca
commit
4a7a0a7b75
@ -165,6 +165,9 @@ func GetServerNameFromClientHello(c net.Conn) (string, []byte) {
|
||||
if err != nil {
|
||||
return "", nil
|
||||
}
|
||||
if n < 42 {
|
||||
return "", nil
|
||||
}
|
||||
copy(data, buf[:n])
|
||||
clientHello := new(crypt.ClientHelloMsg)
|
||||
clientHello.Unmarshal(data[5:n])
|
||||
|
Loading…
x
Reference in New Issue
Block a user