diff --git a/federationapi/routing/keys.go b/federationapi/routing/keys.go index 070f9174a..5650e3d53 100644 --- a/federationapi/routing/keys.go +++ b/federationapi/routing/keys.go @@ -176,7 +176,7 @@ func localKeys(cfg *config.FederationAPI, serverName gomatrixserverlib.ServerNam } keys.Raw, err = gomatrixserverlib.SignJSON( - string(cfg.Matrix.ServerName), cfg.Matrix.KeyID, cfg.Matrix.PrivateKey, toSign, + string(serverName), cfg.Matrix.KeyID, cfg.Matrix.PrivateKey, toSign, ) if err != nil { return nil, err