Skip to content

Commit

Permalink
fix: fix 80 port for admin plugin, #58
Browse files Browse the repository at this point in the history
  • Loading branch information
vicanso committed Dec 11, 2024
1 parent 00cb15b commit 1d41c05
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/plugin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@ pub fn parse_admin_plugin(
}
})?;
let mut addr = info.host_str().unwrap_or_default().to_string();
if let Some(port) = info.port() {
addr = format!("{addr}:{port}")
}
addr = format!("{addr}:{}", info.port().unwrap_or(80));

let mut authorization = "".to_string();
if !info.username().is_empty() {
authorization = urlencoding::decode(info.username())
Expand Down

0 comments on commit 1d41c05

Please sign in to comment.