fix(cmd_line): correctly parse port when it is 443

This commit is contained in:
Σrebe - Romain GERARD 2024-12-15 08:49:03 +01:00
parent 30cd4a72b9
commit d15d8e36f0
No known key found for this signature in database
GPG key ID: 7A42B4B97E0332F4

View file

@ -459,7 +459,7 @@ fn parse_tunnel_dest(remaining: &str) -> Result<(Host<String>, u16, BTreeMap<Str
)); ));
}; };
let Some(remote_port) = remote.port() else { let Some(remote_port) = remote.port_or_known_default() else {
return Err(Error::new( return Err(Error::new(
ErrorKind::InvalidInput, ErrorKind::InvalidInput,
format!("cannot parse remote port from {}", remaining), format!("cannot parse remote port from {}", remaining),