1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-09 01:10:44 +00:00

Fix XTLS over mKCP (#302)

This commit is contained in:
RPRX 2020-10-11 02:52:38 +00:00 committed by GitHub
parent c50fef48a7
commit ff6bb51732
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,9 +138,9 @@ func (l *Listener) OnReceive(payload *buf.Buffer, src net.Destination) {
}, writer, l.config)
var netConn internet.Connection = conn
if l.tlsConfig != nil {
netConn = gotls.Server(conn, l.tlsConfig)
netConn = tls.Server(conn, l.tlsConfig)
} else if l.xtlsConfig != nil {
netConn = goxtls.Server(conn, l.xtlsConfig)
netConn = xtls.Server(conn, l.xtlsConfig)
}
l.addConn(netConn)