From a7582f17f2d829785ec30b39e80da1b040eb57d5 Mon Sep 17 00:00:00 2001 From: Stanislaw Grams Date: Sat, 7 Feb 2026 13:03:27 +0100 Subject: [PATCH] [feat](trx-client): default to port 4532 when not specified in URL Allow connecting with just an IP address (e.g. --url 127.0.0.1) instead of requiring host:port format. Co-Authored-By: Claude Opus 4.6 Signed-off-by: Stanislaw Grams --- src/trx-client/src/remote_client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trx-client/src/remote_client.rs b/src/trx-client/src/remote_client.rs index aae9a60..a984221 100644 --- a/src/trx-client/src/remote_client.rs +++ b/src/trx-client/src/remote_client.rs @@ -195,7 +195,7 @@ pub fn parse_remote_url(url: &str) -> Result { .unwrap_or(trimmed); if !addr.contains(':') { - return Err("remote url must be host:port".into()); + return Ok(format!("{}:4532", addr)); } Ok(addr.to_string())