mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-09 22:42:58 +00:00
Don't try to federated-join via ourselves (#2383)
This commit is contained in:
parent
dca4afd2f0
commit
54ff4cf690
@ -75,7 +75,7 @@ func (r *FederationInternalAPI) PerformJoin(
|
||||
seenSet := make(map[gomatrixserverlib.ServerName]bool)
|
||||
var uniqueList []gomatrixserverlib.ServerName
|
||||
for _, srv := range request.ServerNames {
|
||||
if seenSet[srv] {
|
||||
if seenSet[srv] || srv == r.cfg.Matrix.ServerName {
|
||||
continue
|
||||
}
|
||||
seenSet[srv] = true
|
||||
|
Loading…
Reference in New Issue
Block a user