diff --git a/setup/config/config.go b/setup/config/config.go index 824795cb3..cc9c04470 100644 --- a/setup/config/config.go +++ b/setup/config/config.go @@ -224,7 +224,7 @@ func loadConfig( } privateKeyPath := absPath(basePath, c.Global.PrivateKeyPath) - if c.Global.KeyID, c.Global.PrivateKey, err = LoadMatrixKey(privateKeyPath, os.ReadFile); err != nil { + if c.Global.KeyID, c.Global.PrivateKey, err = LoadMatrixKey(privateKeyPath, readFile); err != nil { return nil, err }