mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-24 11:32:00 -08:00
Bugfix: Do not reopen stream if starttls was not enabled.
This commit is contained in:
parent
ff334ba729
commit
1b90d5d2ef
@ -38,7 +38,9 @@ func NewSession(conn net.Conn, o Options) (net.Conn, *Session, error) {
|
|||||||
// starttls
|
// starttls
|
||||||
var tlsConn net.Conn
|
var tlsConn net.Conn
|
||||||
tlsConn = s.startTlsIfSupported(conn, o.parsedJid.domain)
|
tlsConn = s.startTlsIfSupported(conn, o.parsedJid.domain)
|
||||||
|
if s.TlsEnabled {
|
||||||
s.reset(conn, tlsConn, o)
|
s.reset(conn, tlsConn, o)
|
||||||
|
}
|
||||||
|
|
||||||
// auth
|
// auth
|
||||||
s.auth(o)
|
s.auth(o)
|
||||||
|
Loading…
Reference in New Issue
Block a user