From bcd725b0d7ebedec4b5573ea10dc0fc9eb9b077b Mon Sep 17 00:00:00 2001 From: dewmal Date: Sun, 1 Sep 2024 18:56:04 +0530 Subject: [PATCH] Fix ip address replace issue --- bindings/ceylon/src/workspace/admin_agent.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/ceylon/src/workspace/admin_agent.rs b/bindings/ceylon/src/workspace/admin_agent.rs index 40d2d4c..c21f79e 100644 --- a/bindings/ceylon/src/workspace/admin_agent.rs +++ b/bindings/ceylon/src/workspace/admin_agent.rs @@ -136,7 +136,7 @@ impl AdminAgent { env_vars.insert(ENV_WORKSPACE_PEER, peer_.id.clone()); env_vars.insert(ENV_WORKSPACE_PORT, port.clone().to_string()); env_vars.insert(ENV_WORKSPACE_ID, name.clone()); - env_vars.insert(ENV_WORKSPACE_IP, "".to_string()); + env_vars.insert(ENV_WORKSPACE_IP, "127.0.0.1".to_string()); if let Err(e) = utils::env::write_to_env_file(&env_vars) { eprintln!("Failed to write to .ceylon_network file: {}", e); @@ -149,7 +149,7 @@ impl AdminAgent { println!("| {}={}", ENV_WORKSPACE_ID, name.clone()); println!("| {}={}", ENV_WORKSPACE_PEER, peer_.id.clone()); println!("| {}={}", ENV_WORKSPACE_PORT, port); - println!("| {}={}", ENV_WORKSPACE_IP, ""); + println!("| {}={}", ENV_WORKSPACE_IP, "127.0.0.1"); println!("| Use this ServerAdmin peer ID to connect to the server"); println!("-------------------------------------------------------------------"); } else {