diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-08 12:02:59 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-08 12:14:27 +0000 |
| commit | 0356740d11c9fb6524060e6755ab0c2186096724 (patch) | |
| tree | db7ca39d1cb6b078d40fde14d3a84cfbf443eaab /src/config.rs | |
| parent | 64eaf4407028d3727fe8854a9a8fb97a8660af95 (diff) | |
fix: sync-bootstrap-relay-url scheme optional
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 7834a3f..94035e4 100644 --- a/src/config.rs +++ b/src/config.rs | |||
| @@ -94,6 +94,8 @@ pub struct Config { | |||
| 94 | 94 | ||
| 95 | /// URL of bootstrap relay to sync from on startup (optional) | 95 | /// URL of bootstrap relay to sync from on startup (optional) |
| 96 | /// Sync discovers additional relays from repository announcements that list our service | 96 | /// Sync discovers additional relays from repository announcements that list our service |
| 97 | /// If no scheme is provided (wss:// or ws://), wss:// is assumed | ||
| 98 | /// Examples: "relay.example.com" -> "wss://relay.example.com", "wss://relay.example.com" -> unchanged | ||
| 97 | #[arg(long, env = "NGIT_SYNC_BOOTSTRAP_RELAY_URL")] | 99 | #[arg(long, env = "NGIT_SYNC_BOOTSTRAP_RELAY_URL")] |
| 98 | pub sync_bootstrap_relay_url: Option<String>, | 100 | pub sync_bootstrap_relay_url: Option<String>, |
| 99 | 101 | ||