fiatjaf
a3890c4976
bunker: don't conflict with stored if only default --sec exists, not explicit.
...
fixes nostr:nevent1qvzqqqqqqypzprqgrf7tvq6w3gzkmltk6n4s7hxa6xzc0dgn7mrgr77cjs87svqzqyd8wumn8ghj7cnpwdehq6tnw3hkctn0wfnj76twvfhhsqglwaehxw309ac8junpd45kgtnxd9shg6npvchxxmmd9a5kucn00qqzq570y8j7wet7fw6qz39z3kchqdxxw6wp7anxnxpy62x0qhqd6fhlz79p53
2026-07-22 08:31:18 -03:00
Yasuhiro Matsumoto
44db7af6c0
bunker: fix concurrency bugs, config.Clients/newSecret/cancelPreviousBunkerInfoPrint were accessed from multiple goroutines without a mutex, and nostrconnect subscriptions forwarded events into the pool-owned channel which panics once the pool closes it.
2026-07-15 10:26:55 +09:00
fiatjaf
12000232a7
bunker: remove duplicated "--sec" flags that were interfering with everything.
2026-06-20 20:24:18 -03:00
fiatjaf
b3e009730c
use a default key that is different for each machine.
2026-06-17 10:59:22 -03:00
fiatjaf
0c8e643609
key and auth flags on root command.
2026-06-11 17:49:20 -03:00
fiatjaf
c9e1511865
bunker: fix relay handling, don't mix custom with main relay URLs.
2026-05-21 20:25:07 -03:00
fiatjaf
35d628ef6d
bunker: fix concurrent map writes (url.Values is a map).
2026-05-16 23:16:30 -03:00
fiatjaf
bdd3aa1093
bunker: fix waiting for slow relays?
2026-05-15 17:27:18 -03:00
fiatjaf
eae828e03b
update to the fact that Pool doesn't use PoolOptions anymore, just modify the global pool directly.
2026-04-19 20:17:00 -03:00
fiatjaf
65ddf7b821
use appendUnique from nostrlib.
2026-04-02 03:24:05 -03:00
Yasuhiro Matsumoto
5532c884bc
fix: use %s instead of %w in log/color.RedString format strings
...
%w is only valid in fmt.Errorf. When used in fmt.Sprintf (via
color.RedString) or log, it produces garbled output like
"%!w(MISSING)" and the actual error is not displayed.
2026-03-08 11:15:14 +09:00
fiatjaf
dc5ffe5129
bunker: fix authorizing pubkeys from --authorized-secrets.
...
closes https://github.com/fiatjaf/nak/issues/102
2026-02-04 23:26:26 -03:00
fiatjaf
3ee6320312
bunker: ignore duplicates caused by switch_relays.
2026-01-21 23:17:00 -03:00
fiatjaf
91474d65eb
bunker: set default relays so switch_relays works.
2026-01-21 22:19:00 -03:00
fiatjaf
9160c68cb5
bunker: using unix sockets.
2026-01-21 14:31:12 -03:00
fiatjaf
bf19f38996
nak bunker connect 'nostrconnect://...' working.
2026-01-21 12:44:40 -03:00
fiatjaf
4e2c136e45
nostrconnect:// beginnings.
2026-01-20 17:19:30 -03:00
fiatjaf
0e283368ed
bunker: authorize preexisting keys first.
2026-01-16 12:15:07 -03:00
fiatjaf
6f00ff4c73
bunker: fix a halting waitgroup issue.
2025-12-16 13:13:12 -03:00
fiatjaf
fb377f4775
reword some things.
2025-07-05 11:14:29 -03:00
Anthony Accioly and fiatjaf_
d32654447a
feat(bunker): add QR code generation for bunker URI
...
- Add `--qrcode` flag to display a QR code for the bunker URI.
- Update `README.md` with usage instructions for the new flag.
- Include `qrterminal` dependency for QR code generation.
2025-07-04 14:45:38 -03:00
fiatjaf
cc526acb10
bunker: fix overwriting all keys always with default.
2025-07-01 15:52:44 -03:00
fiatjaf
9c5f68a955
bunker: fix handling of provided and stored secret keys.
2025-07-01 12:36:54 -03:00
fiatjaf
0aef173e8b
nak bunker --persist/--profile
2025-07-01 11:40:34 -03:00
fiatjaf
aadcc73906
adapt to since and until not being pointers.
2025-05-08 09:59:03 -03:00
fiatjaf
4d12550d74
bunker: cosmetic fixes.
2025-04-22 08:38:00 -03:00
fiatjaf
d733a31898
convert to using nostrlib.
2025-04-20 18:11:21 -03:00
fiatjaf
703c186958
much more colors everywhere and everything is prettier.
2025-04-03 14:50:25 -03:00
fiatjaf
9547711e8d
nice dynamic UI when connecting to relays, and go much faster concurrently.
2025-04-03 11:42:33 -03:00
fiatjaf
26930d40bc
migrate to urfave/cli/v3 again now that they have flags after arguments.
2025-02-16 13:02:04 -03:00
fiatjaf
17920d8aef
adapt to go-nostr's new methods that take just one filter (and paginator).
2025-02-13 23:10:18 -03:00
fiatjaf
81571c6952
global bold/italic helpers.
2025-01-30 16:05:51 -03:00
fiatjaf
6e43a6b733
reword NIP-XX to nipXX everywhere.
2025-01-29 19:13:30 -03:00
fiatjaf
2d992f235e
bunker: fix MarshalIndent() is not allowed to have a prefix on json-iterator.
2024-12-13 23:27:08 -03:00
fiatjaf
fd5cd55f6f
replace encoding/json with json-iterator everywhere so we get rid of HTML encoding and maybe be faster.
2024-12-03 00:43:52 -03:00
fiatjaf
ea53eca74f
update go-nostr for nip44-on-nip46 fixes.
2024-10-27 09:56:49 -03:00
fiatjaf
43fe41df5d
use log() function instead of fmt.Fprintf(os.Stderr) in some places.
2024-09-22 19:04:21 -03:00
fiatjaf
2b5f3355bc
use a single global sdk.System and its Pool.
2024-09-17 11:33:02 -03:00
fiatjaf
cf1694704e
bunker: fix printing bunker uri.
2024-08-23 16:17:17 -03:00
fiatjaf
cfdea699bc
fix using NOSTR_SECRET_KEY environment variable.
2024-08-21 10:46:29 -03:00
fiatjaf
2edfa5cbea
nak serve
2024-08-19 12:49:52 -03:00
fiatjaf
c90e61dbec
set .DisableSliceFlagSeparator to true.
...
fixes nostr:nevent1qqs9qwgwnr2rzguzrgt99hhhyv8e84mcdr4mnk86uvm6ndjvzl4rjxqpzpmhxue69uhkztnwdaejumr0dshsz9mhwden5te0vf5hgcm0d9hx2u3wwdhkx6tpdshszxnhwden5te0vfhhxarj9ekx2cm5w4exjene9ehx2ap0j8u0fj
2024-08-07 11:46:08 -03:00
fiatjaf
3d78e91f62
bunker: deny getPublicKey() even though it's harmless.
...
fixes https://github.com/fiatjaf/nak/issues/27
2024-08-06 10:56:08 -03:00
fiatjaf
928c73513c
just move imports around.
2024-07-30 11:43:14 -03:00
fiatjaf
220fe84f1b
hardcode our fork of urfave/cli because go is stupid.
...
fixes https://github.com/fiatjaf/nak/issues/26
2024-07-23 15:23:13 -03:00
fiatjaf
ac00c5065f
nak req: --force-pre-auth flag.
2024-07-10 14:48:02 -03:00
fiatjaf
dba2ed0b5f
update to cli v3.
2024-06-25 22:18:26 -03:00
fiatjaf
1ba39ca7d7
print bunker restart command without schemes in relay urls when possible.
2024-06-07 06:30:58 -03:00
fiatjaf
bb45059218
refactor bunker to work better. remove prompts, use lists of keys and secrets and a new random key.
2024-05-15 17:31:01 -03:00
fiatjaf
34c189af28
bunker improvements.
2024-03-02 08:18:40 -03:00