From 180e2ffb133c5705176c4ee71c55188526b61fde Mon Sep 17 00:00:00 2001 From: runsisi Date: Thu, 29 Aug 2024 22:23:43 +0800 Subject: [PATCH] keep gossip address the same as the actor address Signed-off-by: runsisi --- crates/corro-agent/src/agent/run_root.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/corro-agent/src/agent/run_root.rs b/crates/corro-agent/src/agent/run_root.rs index c6b9730e..0fe3b4fb 100644 --- a/crates/corro-agent/src/agent/run_root.rs +++ b/crates/corro-agent/src/agent/run_root.rs @@ -53,7 +53,7 @@ async fn run(agent: Agent, opts: AgentOptions, pconf: PerfConfig) -> eyre::Resul } = opts; // Get our gossip address and make sure it's valid - let gossip_addr = gossip_server_endpoint.local_addr()?; + let gossip_addr = agent.external_addr().unwrap_or_else(|| agent.gossip_addr()); //// Start PG server to accept query requests from PG clients // TODO: pull this out into a separate function?