From cc526acb10d2f24642f5d58c8b77d43cfc95a67d Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 1 Jul 2025 15:52:44 -0300 Subject: [PATCH] bunker: fix overwriting all keys always with default. --- bunker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bunker.go b/bunker.go index b0942fb..37614ab 100644 --- a/bunker.go +++ b/bunker.go @@ -166,7 +166,7 @@ var bunker = &cli.Command{ } // if we got here without any keys set (no flags, first time using a profile), use the default - { + if config.Secret.Plain == nil && config.Secret.Encrypted == nil { sec := os.Getenv("NOSTR_SECRET_KEY") if sec == "" { sec = defaultKey