fix(cli): preserve IPv6 brackets in RPC portal URLs (#2882)

This commit is contained in:
fanyang
2026-11-26 23:34:16 +08:00
committed by GitHub
parent 4bf3c9e93f
commit 82ab8afd27
+1 -5
View File
@@ -3914,11 +3914,7 @@ async fn main() -> Result<(), Error> {
rust_i18n::set_locale(&locale);
let cli = Cli::parse();
let client = runtime_rpc_client(
format!("tcp://{}:{}", cli.rpc_portal.ip(), cli.rpc_portal.port())
.parse()
.unwrap(),
);
let client = runtime_rpc_client(format!("tcp://{}", cli.rpc_portal).parse().unwrap());
let handler = CommandHandler {
client: Arc::new(tokio::sync::Mutex::new(client)),
verbose: cli.verbose,