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