Skip to content

Commit

Permalink
Use IPv4 because of holochain/holochain#3571
Browse files Browse the repository at this point in the history
  • Loading branch information
ThetaSinner committed Apr 7, 2024
1 parent 15fa333 commit f494dcb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions checked_cli/src/hc_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub async fn get_authenticated_app_agent_client(
installed_app_id: Option<String>,
) -> anyhow::Result<AppAgentWebsocket> {
// TODO connect timeout not configurable! Really slow if Holochain is not running.
let mut admin_client = AdminWebsocket::connect(format!("localhost:{admin_port}"))
let mut admin_client = AdminWebsocket::connect(format!("127.0.0.1:{admin_port}"))
.await
.with_context(|| {
format!("Failed to connect to Holochain admin interface at {admin_port}")
Expand All @@ -42,13 +42,13 @@ pub async fn get_authenticated_app_agent_client(

let app_id = installed_app_id.unwrap_or_else(|| DEFAULT_INSTALLED_APP_ID.to_string());
AppAgentWebsocket::connect(
format!("localhost:{app_port}"),
format!("127.0.0.1:{app_port}"),
app_id.clone(),
signer.into(),
)
.await.with_context(|| {
format!(
"Failed to connect to Holochain app interface at `localhost:{app_port}` with app_id {app_id}"
"Failed to connect to Holochain app interface at `127.0.0.1:{app_port}` with app_id {app_id}"
)
})
}
Expand Down

0 comments on commit f494dcb

Please sign in to comment.