Fix certificat domain check in case of SRV

This commit is contained in:
Chteufleur 2016-08-15 22:40:16 +02:00
parent b63a944cb2
commit 2b101c1c1d
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ func Run() {
}
log.Printf("%sConnecting to %s", LogInfo, addr)
stream = must(xmpp.NewStream(addr, &xmpp.StreamConfig{LogStanzas: Debug})).(*xmpp.Stream)
stream = must(xmpp.NewStream(addr, &xmpp.StreamConfig{LogStanzas: Debug, ConnectionDomain: jid.Domain})).(*xmpp.Stream)
if isComponent {
comp = must(xmpp.NewComponentXMPP(stream, jid, Secret)).(*xmpp.XMPP)