Skip to content

Commit

Permalink
fix: use default port for p2p connections if none was specified
Browse files Browse the repository at this point in the history
  • Loading branch information
elsirion committed Nov 7, 2024
1 parent a17c89f commit d3347da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fedimint-server/src/net/connect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ pub fn parse_host_port(url: &SafeUrl) -> anyhow::Result<String> {
.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}"))
Expand Down

0 comments on commit d3347da

Please sign in to comment.