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}"))