mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-04-24 15:56:03 +00:00
Fix #165
This commit is contained in:
parent
987635d3dc
commit
d37cb44b62
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue