mirror of
https://github.com/XTLS/REALITY.git
synced 2025-08-22 22:48:36 +00:00
Handle handshake err
This commit is contained in:
parent
7c1cc2cde4
commit
f953a50042
@ -26,6 +26,7 @@ func DetectRecordFingerprint(target string) ([]int, error) {
|
|||||||
ServerName: host,
|
ServerName: host,
|
||||||
}
|
}
|
||||||
tlsConn := tls.Client(conn, tlsConfig)
|
tlsConn := tls.Client(conn, tlsConfig)
|
||||||
|
err = tlsConn.Handshake()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -72,8 +73,8 @@ func (c *detectConn) Read(b []byte) (n int, err error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if len(result) != 1 {
|
if len(result) != 1 {
|
||||||
c.done = true
|
c.done = true
|
||||||
c.resultChan <- result
|
c.resultChan <- result
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return n, err
|
return n, err
|
||||||
|
Loading…
Reference in New Issue
Block a user