Merge pull request #435 from Malvineous/patch-1

Allow use of HTTP proxies listening on port 80
This commit is contained in:
Sasha Hilton 2020-02-27 02:14:49 +00:00 committed by GitHub
commit b86c317ac9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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");
}