upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-01-11 21:07:33 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-01-11 21:07:33 +0000
commit809982cdc78e287bc9f3fc0dbac5e2aab2fd7f7d (patch)
tree6e2663dcb1d2db77b870dbf833b9969696e63dcd /src/main.rs
parentc89d3b6b3646b707b53146226bb7afd21cca11fa (diff)
fix(config): trim whitespace from relay-owner-nsec CLI/env input
When relay_owner_nsec is provided via CLI argument or environment variable (e.g., read from a file by the NixOS module), trim any leading/trailing whitespace including newlines. This matches the behavior when reading from the .relay-owner.nsec file directly. Fixes issue where NixOS module reads nsec file with 'cat', which includes the trailing newline, making the nsec invalid when passed as a CLI argument. Also reverted the tr workaround in nix/module.nix since ngit-grasp now handles this correctly.
Diffstat (limited to 'src/main.rs')
0 files changed, 0 insertions, 0 deletions