From d3347dad2efb0ba07309034302a3d09248f61587 Mon Sep 17 00:00:00 2001 From: elsirion Date: Thu, 7 Nov 2024 10:11:36 -0500 Subject: [PATCH] fix: use default port for p2p connections if none was specified --- fedimint-server/src/net/connect.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fedimint-server/src/net/connect.rs b/fedimint-server/src/net/connect.rs index 97b5d5b7230..4ad95c3716d 100644 --- a/fedimint-server/src/net/connect.rs +++ b/fedimint-server/src/net/connect.rs @@ -237,7 +237,7 @@ pub fn parse_host_port(url: &SafeUrl) -> anyhow::Result { .host_str() .ok_or_else(|| format_err!("Missing host in {url}"))?; let port = url - .port() + .port_or_known_default() .ok_or_else(|| format_err!("Missing port in {url}"))?; Ok(format!("{host}:{port}"))