Allow more proxy schemes

This commit is contained in:
klzgrad 2019-01-14 11:52:45 -05:00 committed by GitHub
parent 92e78fb0f1
commit 1e2698cb85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -275,10 +275,6 @@ bool ParseCommandLine(const CommandLine& cmdline, Params* params) {
std::cerr << "Invalid proxy URL" << std::endl;
return false;
}
if (url.scheme() != "https" && url.scheme() != "quic") {
std::cerr << "Must be HTTPS or QUIC proxy" << std::endl;
return false;
}
params->proxy_url = url::SchemeHostPort(url).Serialize();
params->proxy_user = url.username();
params->proxy_pass = url.password();