Fix certificat domain check in case of SRV
This commit is contained in:
parent
b63a944cb2
commit
2b101c1c1d
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue