This commit is contained in:
ssrlive 2024-11-26 12:17:16 +08:00
parent 987635d3dc
commit d37cb44b62

View file

@ -397,7 +397,7 @@ impl TryFrom<&str> for ArgProxy {
let mut url_host = String::from(host); let mut url_host = String::from(host);
let e = format!("`{s}` does not contain a port"); let e = format!("`{s}` does not contain a port");
let port = url.port().ok_or(Error::from(&e))?; let port = url.port_or_known_default().ok_or(Error::from(&e))?;
url_host.push(':'); url_host.push(':');
url_host.push_str(port.to_string().as_str()); url_host.push_str(port.to_string().as_str());