From ed6b4e818f4090c0c707fab49093bc4c3cc3ac20 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 4 Jul 2023 21:48:23 +0200 Subject: Add namespace to streamFeatures struct This prevents collisions. --- xmpp/streams.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmpp/streams.go b/xmpp/streams.go index 8f6fd03..b9cd4cd 100644 --- a/xmpp/streams.go +++ b/xmpp/streams.go @@ -6,7 +6,7 @@ import ( ) type streamFeatures struct { - SaslMechanisms []string `xml:"mechanisms>mechanism"` + SaslMechanisms []string `xml:"urn:ietf:params:xml:ns:xmpp-sasl mechanisms>mechanism"` } func handleStreamFeatures(s *session, f streamFeatures) { -- cgit v1.2.3-70-g09d2