Skip to content

Commit

Permalink
Merge pull request fedimint#6292 from elsirion/2024-11-port-fallback
Browse files Browse the repository at this point in the history
fix: use default port for p2p connections if none was specified
  • Loading branch information
dpc authored Nov 7, 2024
2 parents 90a2fb7 + d3347da commit 01220d5
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 01220d5

Please sign in to comment.