diff options
Diffstat (limited to 'grasp-audit/src/bin')
| -rw-r--r-- | grasp-audit/src/bin/grasp-audit.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/grasp-audit/src/bin/grasp-audit.rs b/grasp-audit/src/bin/grasp-audit.rs index b810bea..760ed55 100644 --- a/grasp-audit/src/bin/grasp-audit.rs +++ b/grasp-audit/src/bin/grasp-audit.rs | |||
| @@ -48,11 +48,14 @@ async fn main() -> Result<()> { | |||
| 48 | 48 | ||
| 49 | match cli.command { | 49 | match cli.command { |
| 50 | Commands::Audit { relay, mode, spec, git_data_dir } => { | 50 | Commands::Audit { relay, mode, spec, git_data_dir } => { |
| 51 | let config = match mode.as_str() { | 51 | let mut config = match mode.as_str() { |
| 52 | "ci" => AuditConfig::ci(), | 52 | "ci" => AuditConfig::ci(), |
| 53 | "production" => AuditConfig::production(), | 53 | "production" => AuditConfig::production(), |
| 54 | _ => return Err(anyhow!("Invalid mode: {}. Use 'ci' or 'production'", mode)), | 54 | _ => return Err(anyhow!("Invalid mode: {}. Use 'ci' or 'production'", mode)), |
| 55 | }; | 55 | }; |
| 56 | |||
| 57 | // Audit needs to create events to test the relay, so disable read-only mode | ||
| 58 | config.read_only = false; | ||
| 56 | 59 | ||
| 57 | // Derive relay_domain from relay URL (e.g., "ws://localhost:8081" -> "localhost:8081") | 60 | // Derive relay_domain from relay URL (e.g., "ws://localhost:8081" -> "localhost:8081") |
| 58 | let relay_domain = relay | 61 | let relay_domain = relay |