0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-15 00:43:44 +01:00

Don't try to federated-join via ourselves (#2383)

This commit is contained in:
Neil Alexander 2022-04-27 12:23:55 +01:00 committed by GitHub
parent dca4afd2f0
commit 54ff4cf690
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,7 @@ func (r *FederationInternalAPI) PerformJoin(
seenSet := make(map[gomatrixserverlib.ServerName]bool) seenSet := make(map[gomatrixserverlib.ServerName]bool)
var uniqueList []gomatrixserverlib.ServerName var uniqueList []gomatrixserverlib.ServerName
for _, srv := range request.ServerNames { for _, srv := range request.ServerNames {
if seenSet[srv] { if seenSet[srv] || srv == r.cfg.Matrix.ServerName {
continue continue
} }
seenSet[srv] = true seenSet[srv] = true