nak req: --force-pre-auth flag.

This commit is contained in:
fiatjaf
2024-07-10 14:48:02 -03:00
parent 441ee9a5ed
commit ac00c5065f
4 changed files with 47 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ var bunker = &cli.Command{
qs := url.Values{}
relayURLs := make([]string, 0, c.Args().Len())
if relayUrls := c.Args().Slice(); len(relayUrls) > 0 {
_, relays := connectToAllRelays(ctx, relayUrls)
_, relays := connectToAllRelays(ctx, relayUrls, false)
if len(relays) == 0 {
log("failed to connect to any of the given relays.\n")
os.Exit(3)