diff --git a/src/main.rs b/src/main.rs index 8ee3b0c4..c788b1b0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -287,7 +287,7 @@ fn setup(args: &[String]) -> Setup { |s| { match Url::parse(&s) { Ok(url) => { - if url.host().is_none() || url.port().is_none() { + if url.host().is_none() || url.port_or_known_default().is_none() { panic!("Invalid proxy url, only urls on the format \"http://host:port\" are allowed"); }