From ae6138eb3a276142a1ee69307a902f4678a2e2ad Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 15 Nov 2022 14:06:32 +0000 Subject: [PATCH] Fix keys --- federationapi/routing/keys.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/federationapi/routing/keys.go b/federationapi/routing/keys.go index 6177b2f7d..4fd3720f1 100644 --- a/federationapi/routing/keys.go +++ b/federationapi/routing/keys.go @@ -16,7 +16,6 @@ package routing import ( "encoding/json" - "net" "net/http" "time" @@ -136,9 +135,6 @@ func ClaimOneTimeKeys( // LocalKeys returns the local keys for the server. // See https://matrix.org/docs/spec/server_server/unstable.html#publishing-keys func LocalKeys(cfg *config.FederationAPI, serverName gomatrixserverlib.ServerName) util.JSONResponse { - if h, _, err := net.SplitHostPort(string(serverName)); err == nil { - serverName = gomatrixserverlib.ServerName(h) - } keys, err := localKeys(cfg, serverName) if err != nil { return util.MessageResponse(http.StatusNotFound, err.Error())