mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2025-04-13 14:11:04 +00:00
Allow more proxy schemes
This commit is contained in:
parent
92e78fb0f1
commit
1e2698cb85
1 changed files with 0 additions and 4 deletions
|
@ -275,10 +275,6 @@ bool ParseCommandLine(const CommandLine& cmdline, Params* params) {
|
||||||
std::cerr << "Invalid proxy URL" << std::endl;
|
std::cerr << "Invalid proxy URL" << std::endl;
|
||||||
return false;
|
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_url = url::SchemeHostPort(url).Serialize();
|
||||||
params->proxy_user = url.username();
|
params->proxy_user = url.username();
|
||||||
params->proxy_pass = url.password();
|
params->proxy_pass = url.password();
|
||||||
|
|
Loading…
Add table
Reference in a new issue