mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-03 07:56:42 -05:00
fix a nil reference issue in tls listener
This commit is contained in:
parent
7d2e2baaf9
commit
949a74edfa
@ -107,12 +107,13 @@ func (v *TCPListener) KeepAccepting() {
|
|||||||
v.Unlock()
|
v.Unlock()
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if v.tlsConfig != nil {
|
if conn != nil && v.tlsConfig != nil {
|
||||||
conn = tls.Server(conn, v.tlsConfig)
|
conn = tls.Server(conn, v.tlsConfig)
|
||||||
}
|
}
|
||||||
if v.authConfig != nil {
|
if conn != nil && v.authConfig != nil {
|
||||||
conn = v.authConfig.Server(conn)
|
conn = v.authConfig.Server(conn)
|
||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case v.awaitingConns <- &ConnectionWithError{
|
case v.awaitingConns <- &ConnectionWithError{
|
||||||
conn: conn,
|
conn: conn,
|
||||||
|
Loading…
Reference in New Issue
Block a user