mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2026-05-06 05:12:53 -07:00
Clean up and fix StartTLS feature discovery
Required field was never set to true
This commit is contained in:
@@ -109,7 +109,7 @@ func (s *Session) startTlsIfSupported(conn net.Conn, domain string) net.Conn {
|
||||
return conn
|
||||
}
|
||||
|
||||
if s.Features.StartTLS.XMLName.Space+" "+s.Features.StartTLS.XMLName.Local == nsTLS+" starttls" {
|
||||
if _, ok := s.Features.DoesStartTLS(); ok {
|
||||
fmt.Fprintf(s.socketProxy, "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>")
|
||||
|
||||
var k tlsProceed
|
||||
|
||||
Reference in New Issue
Block a user