Sign properly

This commit is contained in:
Neil Alexander 2022-11-10 11:10:31 +00:00
parent e3d393cb2b
commit f0a178ca99
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -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