Skip to content

Commit

Permalink
Fix ip address replace issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dewmal committed Sep 1, 2024
1 parent 5a6dbed commit bcd725b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/ceylon/src/workspace/admin_agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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, "<Use public IP address>".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);
Expand All @@ -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, "<Use public IP address>");
println!("| {}={}", ENV_WORKSPACE_IP, "127.0.0.1");
println!("| Use this ServerAdmin peer ID to connect to the server");
println!("-------------------------------------------------------------------");
} else {
Expand Down

0 comments on commit bcd725b

Please sign in to comment.