From f0a178ca99876f5fb7e88ad7f93f4f6495b51766 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Thu, 10 Nov 2022 11:10:31 +0000 Subject: [PATCH] Sign properly --- federationapi/routing/keys.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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