From 431209f3df65e9c3d79fee4a05febc7972190da8 Mon Sep 17 00:00:00 2001 From: "xinfei.wu" Date: Mon, 9 Mar 2020 00:22:14 +0800 Subject: [PATCH] reset isSecure --- xmpp_transport.go | 1 + 1 file changed, 1 insertion(+) diff --git a/xmpp_transport.go b/xmpp_transport.go index 092b95d..0f29d92 100644 --- a/xmpp_transport.go +++ b/xmpp_transport.go @@ -92,6 +92,7 @@ func (t *XMPPTransport) StartTLS() error { return err } + t.isSecure = false t.conn = tlsConn t.readWriter = newStreamLogger(tlsConn, t.logFile) t.decoder = xml.NewDecoder(bufio.NewReaderSize(t.readWriter, maxPacketSize))