aboutsummaryrefslogtreecommitdiff
path: root/federationapi/internal/keys.go
diff options
context:
space:
mode:
Diffstat (limited to 'federationapi/internal/keys.go')
-rw-r--r--federationapi/internal/keys.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/federationapi/internal/keys.go b/federationapi/internal/keys.go
index 2b7a8219..258bd88b 100644
--- a/federationapi/internal/keys.go
+++ b/federationapi/internal/keys.go
@@ -99,7 +99,7 @@ func (s *FederationInternalAPI) handleLocalKeys(
results map[gomatrixserverlib.PublicKeyLookupRequest]gomatrixserverlib.PublicKeyLookupResult,
) {
for req := range requests {
- if req.ServerName != s.cfg.Matrix.ServerName {
+ if !s.cfg.Matrix.IsLocalServerName(req.ServerName) {
continue
}
if req.KeyID == s.cfg.Matrix.KeyID {