From dc5ffe51291ef89adb0838af514db39a78c3c970 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Wed, 4 Feb 2026 23:26:23 -0300 Subject: [PATCH] bunker: fix authorizing pubkeys from --authorized-secrets. closes https://github.com/fiatjaf/nak/issues/102 --- bunker.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bunker.go b/bunker.go index ffdcd19..2f4211f 100644 --- a/bunker.go +++ b/bunker.go @@ -418,6 +418,13 @@ var bunker = &cli.Command{ return true } if slices.Contains(authorizedSecrets, secret) { + // add client to authorized list for subsequent requests + if !slices.ContainsFunc(config.Clients, func(c BunkerConfigClient) bool { return c.PubKey == from }) { + config.Clients = append(config.Clients, BunkerConfigClient{PubKey: from}) + if persist != nil { + persist() + } + } return true }