mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 17:46:58 -05:00
Fix XTLS over mKCP (#302)
This commit is contained in:
parent
c50fef48a7
commit
ff6bb51732
@ -138,9 +138,9 @@ func (l *Listener) OnReceive(payload *buf.Buffer, src net.Destination) {
|
|||||||
}, writer, l.config)
|
}, writer, l.config)
|
||||||
var netConn internet.Connection = conn
|
var netConn internet.Connection = conn
|
||||||
if l.tlsConfig != nil {
|
if l.tlsConfig != nil {
|
||||||
netConn = gotls.Server(conn, l.tlsConfig)
|
netConn = tls.Server(conn, l.tlsConfig)
|
||||||
} else if l.xtlsConfig != nil {
|
} else if l.xtlsConfig != nil {
|
||||||
netConn = goxtls.Server(conn, l.xtlsConfig)
|
netConn = xtls.Server(conn, l.xtlsConfig)
|
||||||
}
|
}
|
||||||
|
|
||||||
l.addConn(netConn)
|
l.addConn(netConn)
|
||||||
|
Loading…
Reference in New Issue
Block a user