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
+2 -2
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)