Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update proxy setting section #1088

Merged
merged 1 commit into from
May 10, 2017
Merged

Update proxy setting section #1088

merged 1 commit into from
May 10, 2017

Conversation

upsuper
Copy link
Contributor

@upsuper upsuper commented Apr 29, 2017

There are two changes:

  1. Use https_proxy rather than http_proxy because the latter doesn't work at all. All traffic from rustup seems to go via https.
  2. Use SOCKS proxy as example, since it is nowadays more widely-used (thanks to GFW in China) and more powerful. Also, avoiding using two https makes it more obvious that other proxy types are also supported without needing to check the manual of curl.

There are two changes:
1. Use `https_proxy` rather than `http_proxy` because the latter doesn't work at all. All traffic from rustup seems to go via https.
2. Use SOCKS proxy as example, since it is nowadays more widely-used (thanks to GFW in China) and more powerful. Also, avoiding using two `http`s makes it more obvious that other proxy types are also supported without needing to check the manual of curl.
@upsuper
Copy link
Contributor Author

upsuper commented Apr 29, 2017

For the first change, you can test that, specifying an invalid proxy on http_proxy would not trigger any error, but specifying an invalid proxy on https_proxy would cause error immediately.

@brson
Copy link
Contributor

brson commented May 8, 2017

@bors r+ Thanks @upsuper !

@bors
Copy link
Contributor

bors commented May 8, 2017

📌 Commit 9849424 has been approved by brson

@bors
Copy link
Contributor

bors commented May 10, 2017

⌛ Testing commit 9849424 with merge b8443be...

bors added a commit that referenced this pull request May 10, 2017
Update proxy setting section

There are two changes:
1. Use `https_proxy` rather than `http_proxy` because the latter doesn't work at all. All traffic from rustup seems to go via https.
2. Use SOCKS proxy as example, since it is nowadays more widely-used (thanks to GFW in China) and more powerful. Also, avoiding using two `http`s makes it more obvious that other proxy types are also supported without needing to check the manual of curl.
@bors
Copy link
Contributor

bors commented May 10, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: brson
Pushing b8443be to master...

@bors bors merged commit 9849424 into rust-lang:master May 10, 2017
@upsuper upsuper deleted the patch-1 branch June 10, 2017 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants