0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-05-18 21:33:48 +02:00

Hopefully fix P2P --config error (re. #2756)

This commit is contained in:
Neil Alexander 2022-10-03 11:38:31 +01:00
parent d32f60249d
commit b7f4bab358
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -89,6 +89,7 @@ func main() {
if configFlagSet {
cfg = setup.ParseFlags(true)
sk = cfg.Global.PrivateKey
pk = sk.Public().(ed25519.PublicKey)
} else {
keyfile := filepath.Join(*instanceDir, *instanceName) + ".pem"
if _, err := os.Stat(keyfile); os.IsNotExist(err) {